mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
New Features: Skin Manager, Collections on Details Page, Flatten TV Shows
This commit is contained in:
1 parent
072cfcbe39
commit
a09dd8e7f6
34 files changed
+2791
-810
No files matched your search
@@ -17,18 +17,20 @@
|
||||
e.stopImmediatePropagation();
|
||||
e.preventDefault();
|
||||
|
||||
console.log("[DashboardButtonFix]: No history to go back. Redirecting to home page.");
|
||||
console.log("[KefinTweaks DashboardButtonFix]: No history to go back. Redirecting to home page.");
|
||||
|
||||
// Changes this to the page you'd like to return to by default
|
||||
const homeUrl = ApiClient.serverVersion().split('.')[1] > 10 ? 'home' : 'home.html';
|
||||
Dashboard.navigate(`/${homeUrl}`);
|
||||
}
|
||||
}, true);
|
||||
|
||||
observer.disconnect();
|
||||
}
|
||||
|
||||
// Observe DOM in case button is recreated
|
||||
const obs = new MutationObserver(attachHandler);
|
||||
obs.observe(document.body, { childList: true, subtree: true });
|
||||
const observer = new MutationObserver(attachHandler);
|
||||
observer.observe(document.body, { childList: true, subtree: true });
|
||||
|
||||
// Initial run
|
||||
attachHandler();
|
||||
|
||||
Reference in new issue
Block a user