mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix auto-completion for epicker in Firefox
This commit is contained in:
parent
0052dc123b
commit
a090b2b564
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ const cmEditor = new CodeMirror(document.querySelector('.codeMirrorContainer'),
|
|||
vAPI.messaging.send('dashboard', {
|
||||
what: 'getAutoCompleteDetails'
|
||||
}).then(response => {
|
||||
if ( response instanceof Object === false ) { return; }
|
||||
// For unknown reasons, `instanceof Object` does not work here in Firefox.
|
||||
if ( typeof response !== 'object' ) { return; }
|
||||
const mode = cmEditor.getMode();
|
||||
if ( mode.setHints instanceof Function ) {
|
||||
mode.setHints(response);
|
||||
|
|
|
|||
Loading…
Reference in a new issue