Index: lib/antiadblockInit.js |
diff --git a/lib/antiadblockInit.js b/lib/antiadblockInit.js |
index ac9ef424ab902bf0c3c18a0e0771a6b840d7a429..e48039e27a250ecdc9c46c771c7a927e532b47a0 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; |
+if (typeof window != "undefined" && window.ext) |
+ ext = window.ext; |
+else |
+ ext = require("ext_background"); |
+ |
exports.initAntiAdblockNotification = function initAntiAdblockNotification() |
{ |
let notification = { |