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 for 10 seconds
// Wait 10 seconds
setTimeout(function() { setTimeout(function() {
// Refresh page // Get the 'domain' parameter from the current URL
// Get domain from param var urlParams = new URLSearchParams(window.location.search);
var domain = urlParams.get('domain'); var domain = urlParams.get('domain');
window.location = "https://hnshosting.au/success?domain=" + domain; // Construct the new URL with the 'domain' parameter
}, 10000); var newURL = "https://hnshosting.au/info?domain=" + domain;
// Redirect to the new URL
window.location.href = newURL;
}, 10000);