From fbe77a8d15330cfd0d340c13eaf77a4c48d3c49f Mon Sep 17 00:00:00 2001 From: eight Date: Sat, 13 Oct 2018 16:15:07 +0800 Subject: [PATCH] Fix: various --- background/style-manager.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/background/style-manager.js b/background/style-manager.js index fda0aae8..4bef80a9 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -312,9 +312,10 @@ const styleManager = (() => { let sloppy = false; let sectionMatched = false; const match = urlMatchStyle(url, style.data); - if (match === false) { - continue; - } + // TODO: enable this when the function starts returning false + // if (match === false) { + // continue; + // } if (match === 'excluded') { excluded = true; } @@ -386,7 +387,6 @@ const styleManager = (() => { } } - // TODO: report excluded styles and sloppy regexps? function getAppliedCode(url, data) { if (urlMatchStyle(url, data) !== true) { return;