diff --git a/js/app.js b/js/app.js index e9c61f9b..9d62532f 100644 --- a/js/app.js +++ b/js/app.js @@ -179,7 +179,7 @@ app = Sammy('#main', function (sam) { c.flash('success', v); }); } - callback(data); + callback(data); } } loaded = true; @@ -216,7 +216,7 @@ app = Sammy('#main', function (sam) { interval = window.location.hostname === args.domain ? 20000 : 5000; checkInstall = setInterval(function () { c.checkInstall(function(isInstalled) { - if (isInstalled || (window.location.hostname === args.domain && typeof isInstalled === 'undefined')) { + if (isInstalled || typeof isInstalled === 'undefined') { c.flash('success', y18n.t('installation_complete')); clearInterval(checkInstall); window.location.href = 'https://'+ window.location.hostname +'/yunohost/admin/'; @@ -236,7 +236,7 @@ app = Sammy('#main', function (sam) { }; }); } - }, + }, // Render view (cross-browser) view: function (view, data, callback) { @@ -438,7 +438,7 @@ app = Sammy('#main', function (sam) { store.set('maindomain', domain); }); }); - + }); sam.get('#/postinstall/password', function(c) { @@ -983,11 +983,11 @@ app = Sammy('#main', function (sam) { * */ - // + // sam.get('#/monitor', function (c) { monitorData = {} - // Why this method ? + // Why this method ? c.api('/services/glances', function(data) { // ? monitorData.status = true;