fix reload issue with # in url

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458 2025-01-03 16:03:17 +00:00
parent 8d4e9bcede
commit 6aa60d556f
2 changed files with 2 additions and 0 deletions

View File

@ -2186,6 +2186,7 @@
function reload() {
var x = window.location.href;
if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); }
if (x.endsWith('#')) { x = x.substring(0, x.length - 1); }
window.location.href = x;
}

View File

@ -2689,6 +2689,7 @@
function reload() {
var x = window.location.href;
if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); }
if (x.endsWith('#')) { x = x.substring(0, x.length - 1); }
window.location.href = x;
}