clear hashParams after moving player with moveTo param
This commit is contained in:
parent
658781e02e
commit
9fe4782fbd
@ -1598,6 +1598,8 @@ ${escapedMessage}
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((reason) => console.warn(reason));
|
.catch((reason) => console.warn(reason));
|
||||||
|
|
||||||
|
urlManager.clearHashParameter();
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn(`Cannot proceed with moveTo command:\n\t-> ${err}`);
|
console.warn(`Cannot proceed with moveTo command:\n\t-> ${err}`);
|
||||||
}
|
}
|
||||||
|
@ -58,6 +58,10 @@ class UrlManager {
|
|||||||
return this.getHashParameters()[name];
|
return this.getHashParameters()[name];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public clearHashParameter(): void {
|
||||||
|
window.location.hash = "";
|
||||||
|
}
|
||||||
|
|
||||||
private getHashParameters(): Record<string, string> {
|
private getHashParameters(): Record<string, string> {
|
||||||
return window.location.hash
|
return window.location.hash
|
||||||
.substring(1)
|
.substring(1)
|
||||||
|
Loading…
Reference in New Issue
Block a user