mirror of https://github.com/lukechilds/Agama.git
ca333
8 years ago
committed by
GitHub
3 changed files with 50 additions and 6 deletions
@ -0,0 +1,45 @@ |
|||
$(document).ready(function() { |
|||
$('#pulse').jRoll({ |
|||
radius: 100, |
|||
animation: 'pulse' |
|||
}); |
|||
|
|||
var appConf = GetAppConf(); |
|||
const remote = require('electron').remote; |
|||
var window = remote.getCurrentWindow(); |
|||
|
|||
$('#loading_status_text').text('Starting Iguana daemon...'); |
|||
|
|||
if (appConf && !appConf.manualIguanaStart) { |
|||
StartIguana(); |
|||
} |
|||
|
|||
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(); |
|||
} |
|||
}) |
|||
//var check = Iguana_activehandle();
|
|||
//console.log(check[0])
|
|||
}, 2000); |
|||
} |
|||
|
|||
function stopcheck() { |
|||
clearInterval(portcheck); |
|||
} |
|||
|
|||
sartcheck(); |
|||
//setTimeout(function(){ window.close(); }, 15000);
|
|||
} else { |
|||
window.close(); |
|||
} |
|||
}); |
@ -0,0 +1,4 @@ |
|||
if (typeof module === 'object') { |
|||
window.module = module; |
|||
module = undefined; |
|||
} |
Loading…
Reference in new issue