diff --git a/httpdocs/toggle.js b/httpdocs/toggle.js index 054afa6..611eda4 100644 --- a/httpdocs/toggle.js +++ b/httpdocs/toggle.js @@ -1,7 +1,7 @@ -const devMode = true; // set to false when you want to go back to your normal site +const devMode = true; // Change to false to return to the normal site -if(devMode && window.location.pathname !== '/under-dev.html'){ - window.location.replace('under-dev.html'); -} else if (!devMode && window.location.pathname === '/under-dev.html') { +if (devMode && !window.location.pathname.endsWith('under_dev.html')) { + window.location.replace('under_dev.html'); +} else if (!devMode && window.location.pathname.endsWith('under_dev.html')) { window.location.replace('index.html'); -} \ No newline at end of file +}