fix toggle + fix seqta toggle not responsive

This commit is contained in:
Crazypersonalph
2023-12-07 13:14:41 +08:00
parent 03ab5f0cdc
commit 292659828e
6 changed files with 24 additions and 2 deletions
+16
View File
@@ -28,6 +28,14 @@ export default class StorageListener {
this.handleSelectedColorChange(changes.selectedColor.newValue);
break;
case 'telemetry':
this.handleTelemetryChange();
break;
case 'onoff':
this.handleOnOffChange();
break;
case 'shortcuts':
this.handleShortcutsChange(
changes.shortcuts.oldValue,
@@ -90,6 +98,14 @@ export default class StorageListener {
}
}
handleTelemetryChange() {
browser.runtime.sendMessage({ type: 'reloadTabs' })
}
handleOnOffChange() {
browser.runtime.sendMessage({ type: 'reloadTabs' })
}
handleNotificationCollectorChange(details: any) {
if (details.newValue) {
enableNotificationCollector();