diff --git a/gulp/res/js/localstorage.js b/gulp/res/js/localstorage.js index 29d3cbb0..48c14b30 100644 --- a/gulp/res/js/localstorage.js +++ b/gulp/res/js/localstorage.js @@ -1,7 +1,7 @@ -const isCatalog = window.location.pathname.endsWith('catalog.html'); +const isCatalog = /^\/(\w+\/(manage\/)?)?catalog.html/.test(window.location.pathname); const isThread = /\/\w+\/thread\/\d+.html/.test(window.location.pathname); const isModView = /\/\w+\/manage\/(thread\/)?(index|\d+).html/.test(window.location.pathname); -const isManage = /\/(\w+\/manage|globalmanage)\/(recent|reports|bans|boards|logs|settings|banners|accounts|news).html/.test(window.location.pathname); +const isManage = /\/(\w+\/manage|globalmanage)\/(recent|reports|bans|boards|logs|settings|banners|accounts|news|custompages).html/.test(window.location.pathname); const isGlobalRecent = window.location.pathname === '/globalmanage/recent.html'; const isRecent = isGlobalRecent || window.location.pathname.endsWith('/manage/recent.html');