mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 08:46:00 +00:00
html files for pages
This commit is contained in:
@@ -1,13 +1,5 @@
|
||||
let isAdminPageCache;
|
||||
|
||||
export function isAdminPage() {
|
||||
if (isAdminPageCache == null) {
|
||||
const params = new URLSearchParams(location.search);
|
||||
const urlPage = params.get('page');
|
||||
|
||||
isAdminPageCache = urlPage == 'admin';
|
||||
}
|
||||
return isAdminPageCache;
|
||||
return window['dbgate_page'] == 'admin';
|
||||
}
|
||||
|
||||
export function getOpenedTabsStorageName() {
|
||||
|
||||
Reference in New Issue
Block a user