Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/cssInjection.js

Issue 29705719: Issue 6402 - Split filter hit / request logging out into own API (Closed)
Patch Set: Nightmarish rebase Created April 13, 2018, 3:20 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/csp.js ('k') | lib/devtools.js » ('j') | lib/devtools.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « lib/csp.js ('k') | lib/devtools.js » ('j') | lib/devtools.js » ('J')

Powered by Google App Engine
This is Rietveld