diff --git a/js/app.js b/js/app.js index a6bea93b..e9c61f9b 100644 --- a/js/app.js +++ b/js/app.js @@ -406,7 +406,13 @@ app = Sammy('#main', function (sam) { sam.get('#/postinstall', function(c) { $('#masthead').hide(); - c.view('postinstall/postinstall_1'); + c.checkInstall(function(isInstalled) { + if (isInstalled) { + c.redirect('#/login'); + } else { + c.view('postinstall/postinstall_1'); + } + }); }); sam.get('#/postinstall/domain', function(c) {