remove test

This commit is contained in:
robcolbert 2019-07-03 20:42:55 -04:00
parent 60c1ae1b30
commit 05ffe63e3d
1 changed files with 8 additions and 7 deletions

View File

@ -11,13 +11,14 @@ const perf = require('./performance');
function main() { function main() {
perf.start('main()'); perf.start('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 (!(/^\/[$/]/).test(path)) { // if (!(/^\/[$/]/).test(path)) {
history.replaceState(null, document.title, `${path}`); // console.log('redirecting you to hell');
} // history.replaceState(null, document.title, `${path}`);
} // }
// }
ready(() => { ready(() => {
const mountNode = document.getElementById('gabsocial'); const mountNode = document.getElementById('gabsocial');