Added back serviceport when taking user to their new domain.
This commit is contained in:
parent
8046018dba
commit
f0fda13b16
|
@ -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");
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue