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