mirror of https://github.com/gorhill/uBlock.git
Fix regression in filter compilation in element picker
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/715 Regression from fix to issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/710
This commit is contained in:
parent
b488334d61
commit
aee6b2d1cb
|
@ -95,12 +95,6 @@ const onMessage = function(request, sender, callback) {
|
||||||
response = µb.applyFilterListSelection(request);
|
response = µb.applyFilterListSelection(request);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'compileCosmeticFilterSelector':
|
|
||||||
response = µb.staticExtFilteringEngine.compileSelector(
|
|
||||||
request.selector
|
|
||||||
);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case 'createUserFilter':
|
case 'createUserFilter':
|
||||||
µb.createUserFilters(request);
|
µb.createUserFilters(request);
|
||||||
break;
|
break;
|
||||||
|
@ -687,6 +681,12 @@ const onMessage = function(request, sender, callback) {
|
||||||
let response;
|
let response;
|
||||||
|
|
||||||
switch ( request.what ) {
|
switch ( request.what ) {
|
||||||
|
case 'compileCosmeticFilterSelector':
|
||||||
|
response = µb.staticExtFilteringEngine.compileSelector(
|
||||||
|
request.selector
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
|
||||||
// https://github.com/gorhill/uBlock/issues/3497
|
// https://github.com/gorhill/uBlock/issues/3497
|
||||||
// This needs to be removed once issue is fixed.
|
// This needs to be removed once issue is fixed.
|
||||||
case 'createUserFilter':
|
case 'createUserFilter':
|
||||||
|
|
Loading…
Reference in New Issue