Browse Source

Merge branch 'master' of https://github.com/pbca26/iguana

ca333-dev
pbca26 8 years ago
parent
commit
91b65337f1
  1. 11
      gui/index.html
  2. 11
      gui/loading.js

11
gui/index.html

@ -28,7 +28,7 @@
}); });
const remote = require('electron').remote; const remote = require('electron').remote;
var window = remote.getCurrentWindow(); var window = remote.getCurrentWindow();
$('#loading_status_text').text('Starting Iguana daemon...') $('#loading_status_text').text('Starting Iguana daemon...');
var appConf = GetAppConf(); var appConf = GetAppConf();
if (appConf && !appConf.manualIguanaStart) { if (appConf && !appConf.manualIguanaStart) {
@ -43,9 +43,9 @@
console.log(result) console.log(result)
if (result !== 'error') { if (result !== 'error') {
stopcheck(); stopcheck();
$('#loading_status_text').text('Connecting to Basilisk Network...') $('#loading_status_text').text('Connecting to Basilisk Network...');
EDEX_DEXgetinfoAll() EDEX_DEXgetinfoAll();
//window.close(); window.close();
} }
}) })
//var check = Iguana_activehandle(); //var check = Iguana_activehandle();
@ -59,8 +59,7 @@
sartcheck(); sartcheck();
//setTimeout(function(){ window.close(); }, 15000); //setTimeout(function(){ window.close(); }, 15000);
} else { } else {
$('#loading_status_text').text(appConf) window.close();
//window.close();
} }
}); });
</script> </script>

11
gui/loading.js

@ -65,15 +65,16 @@ function StartIguana() {
function GetAppConf() { // get iguana app conf function GetAppConf() { // get iguana app conf
var ajax_data = {"herd":"iguana"}; var ajax_data = {"herd":"iguana"};
var data = false;
console.log(ajax_data); console.log(ajax_data);
$.ajax({ $.ajax({
async: false, async: false,
type: 'GET', type: 'GET',
url: 'http://127.0.0.1:17777/shepherd/appconf' url: 'http://127.0.0.1:17777/shepherd/appconf'
}).done(function(data) { }).done(function(_data) {
console.log('== App Conf Data OutPut =='); console.log('== App Conf Data OutPut ==');
console.log(data); console.log(_data);
return data; data = _data;
}).fail(function(xhr, textStatus, error) { }).fail(function(xhr, textStatus, error) {
// handle request failures // handle request failures
console.log(xhr.statusText); console.log(xhr.statusText);
@ -81,9 +82,9 @@ function GetAppConf() { // get iguana app conf
} }
console.log(textStatus); console.log(textStatus);
console.log(error); console.log(error);
return false;
}); });
return data;
} }
function EDEX_DEXnotarychains() { function EDEX_DEXnotarychains() {

Loading…
Cancel
Save