Index: messageResponder.js |
diff --git a/messageResponder.js b/messageResponder.js |
index 47f4b05a9d88c8969531c2aac61c2d9ea0270cc0..2e00586a37a8442d270daf30800f37ab0ae21217 100644 |
--- a/messageResponder.js |
+++ b/messageResponder.js |
@@ -335,6 +335,14 @@ |
} |
}); |
+ port.on("prefs.set", (message, sender) => |
+ { |
+ if (message.key == "notifications_ignoredcategories") |
+ return NotificationStorage.toggleIgnoreCategory("*", message.value); |
+ |
+ return Prefs[message.key] = !Prefs[message.value]; |
Manish Jethani
2017/10/09 15:02:55
Here you just mean to assign message.value.
kzar
2017/10/09 15:09:30
Whoops good catch, Done.
|
+ }); |
+ |
port.on("prefs.toggle", (message, sender) => |
{ |
if (message.key == "notifications_ignoredcategories") |