diff options
Diffstat (limited to 'static/menu.js')
-rw-r--r-- | static/menu.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/static/menu.js b/static/menu.js index 5256ef2..8d0baee 100644 --- a/static/menu.js +++ b/static/menu.js @@ -132,7 +132,7 @@ hashToPage = async () => { else document.getElementById(`${currentPage}_page`).className = 'page' pageElement.className = 'page pageActive' - if ( !pageElement.loaded ) await fetch( pages[p].URL ) + if ( pages[p].dynamic || !pageElement.loaded ) await fetch( pages[p].URL ) .then( response => { if (!response.ok) return `ERROR loading "${pages[p].URL}"!` return response.text() @@ -141,10 +141,10 @@ hashToPage = async () => { pageElement.innerHTML = text; pageElement.loaded = true; } ) - if ( pageElement.innerHTML.startsWith("redirect = ") ) { +/* if ( pageElement.innerHTML.startsWith("redirect = ") ) { pageElement.loaded = false; window.location.assign( pageElement.innerHTML.slice( 11 ) ); - } + }*/ // https://plnkr.co/edit/MMegiu by Allen Kim Array.from(pageElement.querySelectorAll("script")).forEach(oldScript => { |