| 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 => |
| { |
| page.sendMessage({ |
| type: "app.respond", |
| action: "focusSection", |
| args: ["notifications"] |
| }); |
| }); |
| break; |