1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 01:59:38 +02:00

Fix regression in syntax rendering of redirect values in asset viewer

Related commit:
- 262a1a044f
This commit is contained in:
Raymond Hill 2020-12-02 13:07:29 -05:00
parent f8b15ed6cc
commit ee87bda326
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
2 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@
if ( hints instanceof Object ) {
const mode = cmEditor.getMode();
if ( mode.setHints instanceof Function ) {
mode.setHints(hints);
mode.setHints(hints, true);
}
}

View File

@ -1202,7 +1202,7 @@ const onMessage = function(request, sender, callback) {
case 'getAutoCompleteDetails':
response = {};
if ( request.hintUpdateToken === 0 ) {
if ( (request.hintUpdateToken || 0) === 0 ) {
response.redirectResources = µb.redirectEngine.getResourceDetails();
response.preparseDirectiveTokens = µb.preparseDirectives.getTokens();
response.preparseDirectiveHints = µb.preparseDirectives.getHints();