From 05ffe63e3d67c6ee9d274be85ab820f045aaf137 Mon Sep 17 00:00:00 2001 From: robcolbert Date: Wed, 3 Jul 2019 20:42:55 -0400 Subject: [PATCH] remove test --- app/javascript/gabsocial/main.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/javascript/gabsocial/main.js b/app/javascript/gabsocial/main.js index a97079ae..d5f4a8bc 100644 --- a/app/javascript/gabsocial/main.js +++ b/app/javascript/gabsocial/main.js @@ -11,13 +11,14 @@ const perf = require('./performance'); function main() { perf.start('main()'); - if (window.history && history.replaceState) { - const { pathname, search, hash } = window.location; - const path = pathname + search + hash; - if (!(/^\/[$/]/).test(path)) { - history.replaceState(null, document.title, `${path}`); - } - } + // if (window.history && history.replaceState) { + // const { pathname, search, hash } = window.location; + // const path = pathname + search + hash; + // if (!(/^\/[$/]/).test(path)) { + // console.log('redirecting you to hell'); + // history.replaceState(null, document.title, `${path}`); + // } + // } ready(() => { const mountNode = document.getElementById('gabsocial');