Added back serviceport when taking user to their new domain.

This commit is contained in:
John Shaver 2018-09-14 01:40:51 -07:00
parent 8046018dba
commit f0fda13b16
1 changed files with 3 additions and 3 deletions

View File

@ -4,6 +4,7 @@
var meta = {}; var meta = {};
var magic; var magic;
var domainname; var domainname;
var port;
function checkStatus() { function checkStatus() {
// TODO use Location or Link // TODO use Location or Link
@ -37,7 +38,7 @@ function checkStatus() {
function successScreen() { function successScreen() {
document.querySelector('.js-authz').hidden = true; document.querySelector('.js-authz').hidden = true;
document.querySelector('.js-finish-button').addEventListener('click', function(e) { 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) { document.querySelectorAll('.js-new-domain').forEach(function(ele) {
ele.innerHTML = domainname; ele.innerHTML = domainname;
@ -85,6 +86,7 @@ function submitCode(pair) {
*/ */
document.querySelectorAll('.js-new-href').forEach(function ($el) { document.querySelectorAll('.js-new-href').forEach(function ($el) {
domainname = data.domains[0]; domainname = data.domains[0];
port = data.port;
$el.href = 'https://' + data.domains[0] + '/'; $el.href = 'https://' + data.domains[0] + '/';
$el.innerText = '🔐 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) { 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"); document.querySelector('.js-debug-container').classList.toggle("visible");
}) })
} }