1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 23:12:49 -05:00

Address active warnings

This commit is contained in:
purian23
2025-07-26 22:13:09 -04:00
parent 0affd73f32
commit a681593eda
5 changed files with 10 additions and 7 deletions

View File

@@ -204,6 +204,7 @@ Singleton {
}
function dismissNotification(wrapper) {
if (!wrapper || !wrapper.notification) return;
wrapper.popup = false;
wrapper.notification.dismiss();
}
@@ -369,11 +370,13 @@ Singleton {
const group = groupedNotifications.find(g => g.key === groupKey);
if (group) {
for (const notif of group.notifications) {
notif.notification.dismiss();
if (notif && notif.notification) {
notif.notification.dismiss();
}
}
} else {
for (const notif of allWrappers) {
if (getGroupKey(notif) === groupKey) {
if (notif && notif.notification && getGroupKey(notif) === groupKey) {
notif.notification.dismiss();
}
}