From 23aa036db5592569f8e4d3e66027283ff5b5ed27 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 20 Apr 2021 21:05:49 +0300 Subject: [PATCH] show USW styles with 'stylus' category --- popup/search.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/popup/search.js b/popup/search.js index a08ea171..513bda0c 100644 --- a/popup/search.js +++ b/popup/search.js @@ -514,10 +514,10 @@ const {c} = res; return ( c === category || - category !== STYLUS_CATEGORY && ( - searchGlobals && - c === 'global' && - (query.length || calcHaystack(res)._nLC.includes(category)) + (category === STYLUS_CATEGORY + ? c === 'stylus' // USW + : c === 'global' && searchGlobals && + (query.length || calcHaystack(res)._nLC.includes(category)) ) ) && ( !query.length || // to skip calling calcHaystack