[fix] Reload the page after postinstall anyway

This commit is contained in:
Kload 2014-05-27 16:41:53 +02:00
parent 779fb1adfa
commit da6340b70b

View file

@ -216,7 +216,7 @@ app = Sammy('#main', function (sam) {
interval = window.location.hostname === args.domain ? 20000 : 5000; interval = window.location.hostname === args.domain ? 20000 : 5000;
checkInstall = setInterval(function () { checkInstall = setInterval(function () {
c.checkInstall(function(isInstalled) { 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')); c.flash('success', y18n.t('installation_complete'));
clearInterval(checkInstall); clearInterval(checkInstall);
window.location.href = 'https://'+ window.location.hostname +'/yunohost/admin/'; window.location.href = 'https://'+ window.location.hostname +'/yunohost/admin/';