mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 15:52:47 +01:00
Display Toast message when updating KefinTweaks
This commit is contained in:
1 parent
7a65cad704
commit
42c1c10b0d
2 files changed
+105
-15
No files matched your search
@@ -272,6 +272,17 @@
|
||||
window.KefinTweaksToaster = {
|
||||
toast
|
||||
};
|
||||
|
||||
// Drain deferred root-update toast queued by kefinTweaks-plugin before toaster loaded
|
||||
try {
|
||||
const pending = window.__kefinPendingRootUpdateToast;
|
||||
if (pending?.message) {
|
||||
window.__kefinPendingRootUpdateToast = null;
|
||||
toast(pending.message, '5');
|
||||
}
|
||||
} catch (e) {
|
||||
WARN('Failed to flush pending root-update toast:', e);
|
||||
}
|
||||
|
||||
LOG('Initialized successfully');
|
||||
LOG('Available at window.KefinTweaksToaster');
|
||||
|
||||
Reference in new issue
Block a user