fixup fb7f7d54: isMatching must be boolean

This commit is contained in:
tophf 2017-09-01 11:04:24 +03:00
parent 86ebca5e1a
commit 27ad478f8c

View File

@ -339,7 +339,7 @@ function searchStyles({immediately, container}) {
if (!isMatching) {
const style = urlMode ? siteStyleIds.has(entry.styleId) :
BG.cachedStyles.byId.get(entry.styleId) || {};
isMatching = urlMode ? style : Boolean(style && (
isMatching = Boolean(style && (urlMode ||
isMatchingText(style.name) ||
style.url && isMatchingText(style.url) ||
isMatchingStyle(style)));