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:
Raymond Hill 2019-09-02 08:43:49 -04:00
parent b488334d61
commit aee6b2d1cb
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 6 additions and 6 deletions

View File

@ -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':