fixed toggle.js logic
continuous-integration/drone/push Build is failing Details

master
cocaillot 5 months ago
parent 81b655638f
commit 17551a5ec0

@ -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'){ if (devMode && !window.location.pathname.endsWith('under_dev.html')) {
window.location.replace('under-dev.html'); window.location.replace('under_dev.html');
} else if (!devMode && window.location.pathname === '/under-dev.html') { } else if (!devMode && window.location.pathname.endsWith('under_dev.html')) {
window.location.replace('index.html'); window.location.replace('index.html');
} }
Loading…
Cancel
Save