mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Fix requests firing before user is logged in
This commit is contained in:
@@ -3000,13 +3000,6 @@ window.KefinTweaksConfig = ${JSON.stringify(config, null, 2)};`;
|
||||
const hash = String(window.location.hash || '');
|
||||
let watchlistUrl = activePageWatchlistUrl || window.KefinTweaksUtils?._watchlistUrl || null;
|
||||
|
||||
if (!watchlistUrl) {
|
||||
getWatchlistUrl().then((url) => {
|
||||
activePageWatchlistUrl = url;
|
||||
updateActivePage();
|
||||
}).catch(() => { /* ignore */ });
|
||||
}
|
||||
|
||||
let page = '';
|
||||
const tabMatch = hash.match(/[?&]tab=(\d+)/);
|
||||
const tabIndex = tabMatch ? tabMatch[1] : null;
|
||||
|
||||
Reference in New Issue
Block a user