mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
fix: detect if testnet in confing.js
This commit is contained in:
parent
8b0d9272d6
commit
3b8b9b3a78
1 changed files with 10 additions and 10 deletions
20
src/page.h
20
src/page.h
|
@ -403,16 +403,6 @@ namespace xmreg
|
|||
template_file["config.js"] = xmreg::read(JS_CONFIG);
|
||||
template_file["biginteger.js"] = xmreg::read(JS_BIGINT);
|
||||
|
||||
template_file["all_in_one.js"] = template_file["jquery.min.js"] +
|
||||
template_file["crc32.js"] +
|
||||
template_file["biginteger.js"] +
|
||||
template_file["config.js"] +
|
||||
template_file["nacl-fast-cn.js"] +
|
||||
template_file["crypto.js"] +
|
||||
template_file["base58.js"] +
|
||||
template_file["cn_util.js"] +
|
||||
template_file["sha3.js"];
|
||||
|
||||
// need to set "testnet: false," flag to reflect
|
||||
// if we are running testnet or mainnet explorer
|
||||
|
||||
|
@ -424,6 +414,16 @@ namespace xmreg
|
|||
"testnet: true");
|
||||
}
|
||||
|
||||
template_file["all_in_one.js"] = template_file["jquery.min.js"] +
|
||||
template_file["crc32.js"] +
|
||||
template_file["biginteger.js"] +
|
||||
template_file["config.js"] +
|
||||
template_file["nacl-fast-cn.js"] +
|
||||
template_file["crypto.js"] +
|
||||
template_file["base58.js"] +
|
||||
template_file["cn_util.js"] +
|
||||
template_file["sha3.js"];
|
||||
|
||||
js_html_files += "<script src=\"/js/jquery.min.js\"></script>";
|
||||
js_html_files += "<script src=\"/js/crc32.js\"></script>";
|
||||
js_html_files += "<script src=\"/js/biginteger.js\"></script>";
|
||||
|
|
Loading…
Reference in a new issue