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

Unified Diff: lib/antiadblockInit.js

Issue 29370594: [adblockplusui] Issue 4915 - Define ext for background pages in antiadblockInit.js (Closed)
Patch Set: Define ext for background page in antiadblockInit Created Feb. 20, 2017, 1:46 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/antiadblockInit.js
diff --git a/lib/antiadblockInit.js b/lib/antiadblockInit.js
index ac9ef424ab902bf0c3c18a0e0771a6b840d7a429..5e4f1b014c645d0821b4bccef27f9d1d57b6d8d8 100644
--- a/lib/antiadblockInit.js
+++ b/lib/antiadblockInit.js
@@ -25,6 +25,12 @@ let {FilterNotifier} = require("filterNotifier");
let {Subscription} = require("subscriptionClasses");
let {Notification} = require("notification");
+let ext = (
+ typeof window != "undefined" && window.ext ?
+ window.ext :
+ require("ext_background")
+);
Sebastian Noack 2017/02/20 16:27:25 For reference, if it wouldn't be for ESLint's non-
wspee 2017/03/01 14:53:38 Done.
Wladimir Palant 2017/03/02 11:14:39 That wouldn't work, ESLint isn't spoiling the fun
+
exports.initAntiAdblockNotification = function initAntiAdblockNotification()
{
let notification = {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld