mirror of https://github.com/lukechilds/Agama.git
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.
46 lines
1.0 KiB
46 lines
1.0 KiB
$(document).ready(function() {
|
|
const remote = require('electron').remote;
|
|
var window = remote.getCurrentWindow();
|
|
|
|
$('#pulse').jRoll({
|
|
radius: 100,
|
|
animation: 'pulse'
|
|
});
|
|
|
|
var appConf = GetAppConf();
|
|
|
|
$('#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.hide();
|
|
}
|
|
});
|
|
|