mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-13 07:49:56 -04:00
fix reload issue with # in url
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
8d4e9bcede
commit
6aa60d556f
@ -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…
x
Reference in New Issue
Block a user