about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/flavours/glitch/main.js')
-rw-r--r--app/javascript/flavours/glitch/main.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/app/javascript/flavours/glitch/main.js b/app/javascript/flavours/glitch/main.js
index ecb19ef54..f1e10df34 100644
--- a/app/javascript/flavours/glitch/main.js
+++ b/app/javascript/flavours/glitch/main.js
@@ -12,14 +12,6 @@ const perf = require('flavours/glitch/performance');
 function main() {
   perf.start('main()');
 
-  if (window.history && history.replaceState) {
-    const { pathname, search, hash } = window.location;
-    const path = pathname + search + hash;
-    if (!(/^\/web($|\/)/).test(path)) {
-      history.replaceState(null, document.title, `/web${path}`);
-    }
-  }
-
   return ready(async () => {
     const mountNode = document.getElementById('mastodon');
     const props = JSON.parse(mountNode.getAttribute('data-props'));