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
1 changed files with 1 additions and 1 deletions

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])