add a heap more eventlisteners

This commit is contained in:
SethBurkart123
2023-10-09 11:44:40 +11:00
parent 39c42c5920
commit 7a672b1b1b
9 changed files with 130 additions and 123 deletions
+14
View File
@@ -3,6 +3,8 @@
import {
CreateCustomShortcutDiv,
RemoveCustomShortcutDiv,
disableNotificationCollector,
enableNotificationCollector,
} from "../../SEQTA.js";
import { updateAllColors } from "../ui/Colors.js";
@@ -22,6 +24,10 @@ export default class StorageListener {
changes.customshortcuts.newValue
);
}
if (changes.notificationcollector) {
this.handleNotificationCollectorChange(changes.notificationcollector);
}
}
handleSelectedColorChange(newColor) {
@@ -32,6 +38,14 @@ export default class StorageListener {
}
}
handleNotificationCollectorChange(details) {
if (details.newValue) {
enableNotificationCollector();
} else {
disableNotificationCollector();
}
}
handleCustomShortcutsChange(oldValue, newValue) {
// Check for addition
if (newValue.length > oldValue.length) {