From 188334c8508fe689389fe3659af7c860e9c6f9ac Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 20 Sep 2023 22:32:14 +1000 Subject: [PATCH] main: Updated refresh script --- master/templates/assets/js/status_update.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/master/templates/assets/js/status_update.js b/master/templates/assets/js/status_update.js index 0738dca..9f6509a 100644 --- a/master/templates/assets/js/status_update.js +++ b/master/templates/assets/js/status_update.js @@ -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); \ No newline at end of file + // 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);