Index: lib/cssInjection.js |
diff --git a/lib/cssInjection.js b/lib/cssInjection.js |
index a8d09dc8f175f91758abca15d48d5d20fefd4cc1..117d5972f373de81061d7e50b9d95a20538847ac 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 |
@@ -161,7 +161,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, |