Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/notificationHelper.js

Issue 29536764: Issue 5587, 5748 - Use mobile options page on Firefox for Android (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Rebase on next Created Sept. 26, 2017, 10:04 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« lib/browserAction.js ('K') | « lib/browserAction.js ('k') | lib/options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld