main: Updated refresh script
All checks were successful
Build Docker / Build Master (push) Successful in 24s
Build Docker / Build Bot (push) Successful in 23s

This commit is contained in:
Nathan Woodburn 2023-09-20 22:32:14 +10:00
parent 6ea4e72e8a
commit 188334c850
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -1,10 +1,12 @@
// Refresh page without status arg
// Wait 10 seconds
// Wait for 10 seconds
setTimeout(function() {
// Refresh page
// Get domain from param
// Get the 'domain' parameter from the current URL
var urlParams = new URLSearchParams(window.location.search);
var domain = urlParams.get('domain');
window.location = "https://hnshosting.au/success?domain=" + domain;
}, 10000);
// Construct the new URL with the 'domain' parameter
var newURL = "https://hnshosting.au/info?domain=" + domain;
// Redirect to the new URL
window.location.href = newURL;
}, 10000);