Index: lib/notificationHelper.js |
=================================================================== |
--- a/lib/notificationHelper.js |
+++ b/lib/notificationHelper.js |
@@ -20,16 +20,17 @@ |
"use strict"; |
const {startIconAnimation, stopIconAnimation} = require("icon"); |
const {Utils} = require("utils"); |
const {Notification: NotificationStorage} = require("notification"); |
const {stringifyURL} = require("url"); |
const {initAntiAdblockNotification} = require("antiadblockInit"); |
const {Prefs} = require("prefs"); |
+const {showOptions} = require("options"); |
let activeNotification = null; |
let activeButtons = null; |
let defaultDisplayMethods = ["popup"]; |
let displayMethods = Object.create(null); |
displayMethods.critical = ["icon", "notification", "popup"]; |
displayMethods.question = ["notification"]; |
displayMethods.normal = ["notification"]; |
@@ -118,17 +119,17 @@ |
case "link": |
ext.pages.open(Utils.getDocLink(activeNotification.links[buttonIndex])); |
break; |
case "open-all": |
openNotificationLinks(); |
break; |
case "configure": |
Prefs.notifications_showui = true; |
- ext.showOptions(page => |
+ showOptions(page => |
Sebastian Noack
2017/09/27 01:38:35
I didn't go through the code, but assuming all ins
Manish Jethani
2017/09/27 11:20:55
In messageResponder.js we have this:
ext.showOp
Sebastian Noack
2017/09/30 02:38:43
The callback there seems to be dead code to me. I
Manish Jethani
2017/09/30 13:49:52
This callback is required for the abp:subscribe li
Sebastian Noack
2017/10/02 01:47:04
abp:subscribe links are not handled through the ap
Manish Jethani
2017/10/02 08:03:12
Sorry, I referred to the wrong code.
Here's the p
|
{ |
page.sendMessage({ |
type: "app.respond", |
action: "focusSection", |
args: ["notifications"] |
}); |
}); |
break; |