diff --git a/background/style-manager.js b/background/style-manager.js index ff18192d..4ddb6411 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -586,7 +586,7 @@ const styleManager = (() => { ) { return true; } - if (section.urlPrefixes && section.urlPrefixes.some(p => query.url.startsWith(p))) { + if (section.urlPrefixes && section.urlPrefixes.some(p => p && query.url.startsWith(p))) { return true; } // as per spec the fragment portion is ignored in @-moz-document: