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 = { |