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

Unified Diff: lib/notificationHelper.js

Issue 29713631: Issue 5760 - Use relative require paths (Closed)
Patch Set: Address PS3 comment Created April 3, 2018, 6:03 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
@@ -14,23 +14,25 @@
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
*/
/** @module notificationHelper */
"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");
+const {startIconAnimation, stopIconAnimation} = require("./icon");
+const {Utils} = require("./utils");
+const {Notification: NotificationStorage} =
+ require("../adblockpluscore/lib/notification");
+const {stringifyURL} = require("./url");
+const {initAntiAdblockNotification} =
+ require("../adblockplusui/lib/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"];

Powered by Google App Engine
This is Rietveld