mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-16 20:03:24 +00:00
parent
983ab40086
commit
0f07218e53
|
@ -12,7 +12,7 @@ function main() {
|
||||||
if (window.history && history.replaceState) {
|
if (window.history && history.replaceState) {
|
||||||
const { pathname, search, hash } = window.location;
|
const { pathname, search, hash } = window.location;
|
||||||
const path = pathname + search + hash;
|
const path = pathname + search + hash;
|
||||||
if (!(/^\/web[$/]/).test(path)) {
|
if (!(/^\/web($|\/)/).test(path)) {
|
||||||
history.replaceState(null, document.title, `/web${path}`);
|
history.replaceState(null, document.title, `/web${path}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue