mirror of https://github.com/gorhill/uBlock.git
Fix preview of :style()-based cosmetic filters
This commit is contained in:
parent
de19ab3073
commit
0cd019ec7d
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue