diff options
author | Starfall <root@starfall.blue> | 2020-04-11 20:04:46 -0500 |
---|---|---|
committer | Starfall <root@starfall.blue> | 2020-04-11 20:04:46 -0500 |
commit | 144ecfcfc7d9974117f1563084409a9558290a60 (patch) | |
tree | a26bd8374e4b8264dbae815fbfbd3b91ae51450b /app/javascript/flavours/glitch/util/main.js | |
parent | 12d35783db1bb302d7540d8d3690ab6eed3dac3b (diff) |
Revert "Revert "Merge branch 'glitch'""
This reverts commit 12d35783db1bb302d7540d8d3690ab6eed3dac3b.
Diffstat (limited to 'app/javascript/flavours/glitch/util/main.js')
-rw-r--r-- | app/javascript/flavours/glitch/util/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/util/main.js b/app/javascript/flavours/glitch/util/main.js index b76826481..1fdb9ff2b 100644 --- a/app/javascript/flavours/glitch/util/main.js +++ b/app/javascript/flavours/glitch/util/main.js @@ -12,7 +12,7 @@ function main() { if (window.history && history.replaceState) { const { pathname, search, hash } = window.location; const path = pathname + search + hash; - if (!(/^\/web[$/]/).test(path)) { + if (!(/^\/web($|\/)/).test(path)) { history.replaceState(null, document.title, `/web${path}`); } } |