You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
52 lines
1.3 KiB
8 years ago
|
$(document).ready(function() {
|
||
|
const remote = require('electron').remote;
|
||
|
var window = remote.getCurrentWindow();
|
||
|
var appConf = remote.getCurrentWindow().appConfig;
|
||
|
|
||
|
$('#pulse').jRoll({
|
||
|
radius: 100,
|
||
|
animation: 'pulse'
|
||
|
});
|
||
|
|
||
|
inititalWalletLoading();
|
||
|
|
||
|
$('#loading_status_text').text('Starting Wallet. Please wait...');
|
||
|
|
||
|
function inititalWalletLoading() {
|
||
|
// run iguana-less mode with no daemons startup
|
||
|
if (appConf && appConf.iguanaLessMode) {
|
||
|
// do something
|
||
|
} else { // run normal mode with 2 iguana instances started prior loading GUI
|
||
|
if (appConf && !appConf.manualIguanaStart) {
|
||
|
StartIguana();
|
||
|
}
|
||
|
|
||
|
var portcheck;
|
||
|
|
||
|
function startcheck() {
|
||
|
portcheck = setInterval(function(){
|
||
|
Iguana_activehandle(appConf).then(function(result){
|
||
|
console.log(result);
|
||
|
|
||
|
if (result !== 'error') {
|
||
|
stopcheck();
|
||
|
|
||
|
if (appConf && appConf.useBasiliskInstance) {
|
||
|
StartIguana_Cache();
|
||
|
}
|
||
|
|
||
|
$('#loading_status_text').text('Connecting to Basilisk Network...');
|
||
|
EDEX_DEXgetinfoAll(appConf.skipBasiliskNetworkCheck, appConf.minNotaries, appConf);
|
||
|
}
|
||
|
})
|
||
|
}, 2000);
|
||
|
}
|
||
|
|
||
|
function stopcheck() {
|
||
|
clearInterval(portcheck);
|
||
|
}
|
||
|
|
||
|
startcheck();
|
||
|
}
|
||
|
}
|
||
|
});
|