From ee87bda326f90e76c0c4d84dda9fde3d4a33e24e Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 2 Dec 2020 13:07:29 -0500 Subject: [PATCH] Fix regression in syntax rendering of redirect values in asset viewer Related commit: - https://github.com/gorhill/uBlock/commit/262a1a044f706d8937ba430911359d7c306329e4 --- src/js/asset-viewer.js | 2 +- src/js/messaging.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/asset-viewer.js b/src/js/asset-viewer.js index ecdef01c2..54fef4599 100644 --- a/src/js/asset-viewer.js +++ b/src/js/asset-viewer.js @@ -66,7 +66,7 @@ if ( hints instanceof Object ) { const mode = cmEditor.getMode(); if ( mode.setHints instanceof Function ) { - mode.setHints(hints); + mode.setHints(hints, true); } } diff --git a/src/js/messaging.js b/src/js/messaging.js index 478f2c215..c8c175165 100644 --- a/src/js/messaging.js +++ b/src/js/messaging.js @@ -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();