diff --git a/lib/extensions/admin/login/js/app.js b/lib/extensions/admin/login/js/app.js index cbeda1a..cde3ac8 100644 --- a/lib/extensions/admin/login/js/app.js +++ b/lib/extensions/admin/login/js/app.js @@ -4,6 +4,7 @@ var meta = {}; var magic; var domainname; +var port; function checkStatus() { // TODO use Location or Link @@ -37,7 +38,7 @@ function checkStatus() { function successScreen() { document.querySelector('.js-authz').hidden = true; document.querySelector('.js-finish-button').addEventListener('click', function(e) { - window.location.href='https://' + domainname; + window.location.href='https://' + domainname + "/#/serviceport=" + port; }); document.querySelectorAll('.js-new-domain').forEach(function(ele) { ele.innerHTML = domainname; @@ -85,6 +86,7 @@ function submitCode(pair) { */ document.querySelectorAll('.js-new-href').forEach(function ($el) { domainname = data.domains[0]; + port = data.port; $el.href = 'https://' + data.domains[0] + '/'; $el.innerText = '🔐 https://' + data.domains[0]; }); @@ -160,8 +162,6 @@ function init() { }); }; document.querySelector('.js-debug-button').addEventListener("click", function(e) { - //var info = document.querySelector('.js-debug-info'); - //info.hidden = !info.hidden; document.querySelector('.js-debug-container').classList.toggle("visible"); }) }