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() {
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');