Fix preview of :style()-based cosmetic filters

This commit is contained in:
Raymond Hill 2022-09-27 09:32:58 -04:00
parent de19ab3073
commit 0cd019ec7d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -756,7 +756,7 @@ const filterToDOMInterface = (( ) => {
try { try {
const o = JSON.parse(raw); const o = JSON.parse(raw);
elems = vAPI.domFilterer.createProceduralFilter(o).exec(); elems = vAPI.domFilterer.createProceduralFilter(o).exec();
style = o.action === undefined || o.action[0] !== ':style' style = o.action === undefined || o.action[0] !== 'style'
? vAPI.hideStyle ? vAPI.hideStyle
: o.action[1]; : o.action[1];
} catch(ex) { } catch(ex) {