Update index.html
Only for Testing purpose - Added quick param: pass quick in url query to ignore onLoadStartup - Added testnet param: pass testnet in url query to change blockchain to FLO_TEST (testnet FLO)
This commit is contained in:
parent
bf9e018883
commit
1a8e1abe45
17
index.html
17
index.html
@ -11,6 +11,21 @@
|
|||||||
application: "TEST_MODE",
|
application: "TEST_MODE",
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
(function () {
|
||||||
|
const urlSearchParams = new URLSearchParams(window.location.search);
|
||||||
|
const params = Object.fromEntries(urlSearchParams.entries());
|
||||||
|
if ('testnet' in params) {
|
||||||
|
floGlobals.blockchain = "FLO_TEST";
|
||||||
|
floGlobals.adminID = "oKKHdK5uYAJ52U91sYsWhnEaEAAhZP779B";
|
||||||
|
floGlobals.application = "TEST_MODE_testnet";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ('quick' in params)
|
||||||
|
window.quick = true;
|
||||||
|
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
<script src="lib.js"></script>
|
<script src="lib.js"></script>
|
||||||
<script src="floCrypto.js"></script>
|
<script src="floCrypto.js"></script>
|
||||||
<script src="btcOperator.js"></script>
|
<script src="btcOperator.js"></script>
|
||||||
@ -21,7 +36,7 @@
|
|||||||
<script src="floDapps.js"></script>
|
<script src="floDapps.js"></script>
|
||||||
<script id="onLoadStartUp">
|
<script id="onLoadStartUp">
|
||||||
function onLoadStartUp() {
|
function onLoadStartUp() {
|
||||||
|
if (window.quick) return;
|
||||||
//floDapps.addStartUpFunction('Sample', Promised Function)
|
//floDapps.addStartUpFunction('Sample', Promised Function)
|
||||||
//floDapps.setAppObjectStores({sampleObs1:{}, sampleObs2:{options{autoIncrement:true, keyPath:'SampleKey'}, Indexes:{sampleIndex:{}}}})
|
//floDapps.setAppObjectStores({sampleObs1:{}, sampleObs2:{options{autoIncrement:true, keyPath:'SampleKey'}, Indexes:{sampleIndex:{}}}})
|
||||||
//floDapps.setCustomPrivKeyInput( () => { FUNCTION BODY *must resolve private key* } )
|
//floDapps.setCustomPrivKeyInput( () => { FUNCTION BODY *must resolve private key* } )
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user