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);
|
||||
break;
|
||||
|
||||
case 'compileCosmeticFilterSelector':
|
||||
response = µb.staticExtFilteringEngine.compileSelector(
|
||||
request.selector
|
||||
);
|
||||
break;
|
||||
|
||||
case 'createUserFilter':
|
||||
µb.createUserFilters(request);
|
||||
break;
|
||||
|
@ -687,6 +681,12 @@ const onMessage = function(request, sender, callback) {
|
|||
let response;
|
||||
|
||||
switch ( request.what ) {
|
||||
case 'compileCosmeticFilterSelector':
|
||||
response = µb.staticExtFilteringEngine.compileSelector(
|
||||
request.selector
|
||||
);
|
||||
break;
|
||||
|
||||
// https://github.com/gorhill/uBlock/issues/3497
|
||||
// This needs to be removed once issue is fixed.
|
||||
case 'createUserFilter':
|
||||
|
|
Loading…
Reference in New Issue