Index: messageResponder.js |
=================================================================== |
--- a/messageResponder.js |
+++ b/messageResponder.js |
@@ -342,19 +342,19 @@ |
}); |
} |
} |
}); |
port.on("prefs.toggle", (message, sender) => |
{ |
if (message.key == "notifications_ignoredcategories") |
- NotificationStorage.toggleIgnoreCategory("*"); |
- else |
- Prefs[message.key] = !Prefs[message.key]; |
+ return NotificationStorage.toggleIgnoreCategory("*"); |
Manish Jethani
2017/09/01 12:08:38
It's OK to return undefined here since it's a spec
Thomas Greiner
2017/09/04 10:44:19
Acknowledged.
|
+ |
+ return Prefs[message.key] = !Prefs[message.key]; |
Thomas Greiner
2017/09/04 10:44:19
I assume you're planning to use it in https://code
Manish Jethani
2017/09/04 11:30:02
Yes, specifically line 140 here in the new code:
|
}); |
port.on("subscriptions.add", (message, sender) => |
{ |
let subscription = Subscription.fromURL(message.url); |
if ("title" in message) |
subscription.title = message.title; |
if ("homepage" in message) |