mirror of
https://github.com/luxfi/pics.git
synced 2026-07-26 21:08:58 +00:00
Add some missing paths to frontend for isManage regex
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
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|(global)?logs|settings|banners|accounts|roles|news|filters|custompages).html/.test(window.location.pathname);
|
||||
const isManage = /\/(\w+\/manage|globalmanage)\/(recent|reports|bans|boards|(global)?logs|settings|banners|accounts|roles|news|filters|custompages|assets|staff).html/.test(window.location.pathname);
|
||||
const isGlobalRecent = window.location.pathname === '/globalmanage/recent.html';
|
||||
const isRecent = isGlobalRecent || window.location.pathname.endsWith('/manage/recent.html');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user