diff --git a/config.json b/config.json new file mode 100644 index 0000000..2fe8b6c --- /dev/null +++ b/config.json @@ -0,0 +1,6 @@ +{ + "edexGuiOnly": true, + "iguanaGuiOnly": false, + "manualIguanaStart": false, + "skipBasiliskNetworkCheck": false +} \ No newline at end of file diff --git a/gui/index.html b/gui/index.html index c84f06e..d49283e 100644 --- a/gui/index.html +++ b/gui/index.html @@ -29,30 +29,39 @@ const remote = require('electron').remote; var window = remote.getCurrentWindow(); $('#loading_status_text').text('Starting Iguana daemon...') - StartIguana(); - - var portcheck; - function sartcheck() { - portcheck = setInterval(function(){ - Iguana_activehandle().then(function(result){ - console.log(result) - if (result !== 'error') { - stopcheck(); - $('#loading_status_text').text('Connecting to Basilisk Network...') - EDEX_DEXgetinfoAll() - //window.close(); - } - }) - //var check = Iguana_activehandle(); - //console.log(check[0]) - },2000); + var appConf = GetAppConf(); + + if (appConf && !appConf.manualIguanaStart) { + StartIguana(); } - function stopcheck() { - clearInterval(portcheck); + if (appConf && !appConf.skipBasiliskNetworkCheck) { + var portcheck; + function sartcheck() { + portcheck = setInterval(function(){ + Iguana_activehandle().then(function(result){ + console.log(result) + if (result !== 'error') { + stopcheck(); + $('#loading_status_text').text('Connecting to Basilisk Network...') + EDEX_DEXgetinfoAll() + //window.close(); + } + }) + //var check = Iguana_activehandle(); + //console.log(check[0]) + },2000); + } + + function stopcheck() { + clearInterval(portcheck); + } + sartcheck(); + //setTimeout(function(){ window.close(); }, 15000); + } else { + $('#loading_status_text').text(appConf) + //window.close(); } - sartcheck(); - //setTimeout(function(){ window.close(); }, 15000); });
- -