mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-15 04:21:51 +00:00
fix reload issue with # in url
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
8d4e9bcede
commit
6aa60d556f
2 changed files with 2 additions and 0 deletions
|
@ -2186,6 +2186,7 @@
|
||||||
function reload() {
|
function reload() {
|
||||||
var x = window.location.href;
|
var x = window.location.href;
|
||||||
if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); }
|
if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); }
|
||||||
|
if (x.endsWith('#')) { x = x.substring(0, x.length - 1); }
|
||||||
window.location.href = x;
|
window.location.href = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2689,6 +2689,7 @@
|
||||||
function reload() {
|
function reload() {
|
||||||
var x = window.location.href;
|
var x = window.location.href;
|
||||||
if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); }
|
if (x.endsWith('/#')) { x = x.substring(0, x.length - 2); }
|
||||||
|
if (x.endsWith('#')) { x = x.substring(0, x.length - 1); }
|
||||||
window.location.href = x;
|
window.location.href = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue