bitaddress.org/src/ninja.onload.js
Michael Muré fadeabd396 refactor js for storing/using the different currency
remove support for testnet, as it will be implemented as yet another currency
wallet generation should work at this point
TODO: detect currency type from a key
2014-03-06 21:52:32 +01:00

16 lines
No EOL
683 B
JavaScript

// run unit tests
if (ninja.getQueryString()["unittests"] == "true" || ninja.getQueryString()["unittests"] == "1") {
ninja.unitTests.runSynchronousTests();
ninja.translator.showEnglishJson();
}
// run async unit tests
if (ninja.getQueryString()["asyncunittests"] == "true" || ninja.getQueryString()["asyncunittests"] == "1") {
ninja.unitTests.runAsynchronousTests();
}
// change language
if (ninja.getQueryString()["culture"] != undefined) {
ninja.translator.translate(ninja.getQueryString()["culture"]);
}
if (ninja.getQueryString()["showseedpool"] == "true" || ninja.getQueryString()["showseedpool"] == "1") {
document.getElementById("seedpoolarea").style.display = "block";
}