Index: lib/cssInjection.js |
diff --git a/lib/cssInjection.js b/lib/cssInjection.js |
index bb899c050074c234ec620eff27916e36661e8d9f..daab339b414970d9357f75ed0407cd687570f9f5 100644 |
--- a/lib/cssInjection.js |
+++ b/lib/cssInjection.js |
@@ -25,7 +25,7 @@ const {ElemHideEmulation} = require("../adblockpluscore/lib/elemHideEmulation"); |
const {checkWhitelisted} = require("./whitelisting"); |
const {extractHostFromFrame} = require("./url"); |
const {port} = require("./messaging"); |
-const devtools = require("./devtools"); |
+const {hasListener} = require("./hitLogger"); |
const info = require("../buildtools/info"); |
// Chromium's support for tabs.removeCSS is still a work in progress and the |
@@ -164,7 +164,7 @@ port.on("elemhide.getSelectors", (message, sender) => |
{ |
let selectors = []; |
let emulatedPatterns = []; |
- let trace = devtools.hasPanel(sender.page.id); |
+ let trace = hasListener(sender.page.id); |
let inline = !userStyleSheetsSupported; |
if (!checkWhitelisted(sender.page, sender.frame, null, |