1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-15 15:32:28 +02:00

Bring back action/state highlighting in _"My rules"_

This commit is contained in:
Raymond Hill 2020-11-20 05:34:56 -05:00
parent 941e7e8e96
commit ab98cd46b1
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -176,7 +176,7 @@ CodeMirror.defineMode('ubo-dynamic-filtering', ( ) => {
// rule type or switch state
if ( isSwitchRule ) {
string = validSwitcheStates.has(match[0])
? addMatchSlice(match)
? addMatchSlice(match, match[0] === 'true' ? 'blockrule' : 'allowrule')
: addMatchSlice(match, 'error');
} else if ( isURLRule ) {
string = invalidURLRuleTypes.has(match[0])