mirror of https://github.com/gorhill/uBlock.git
Fix error when loading a non-cached non-local asset
The error condition was triggered when the following conditions were met: - Load a non-local asset, i.e. selecting a filter list which is not part of the package - The non-local asset is not in the local cache
This commit is contained in:
parent
07cbae66a4
commit
5a29a21c81
|
@ -1 +1 @@
|
|||
1.19.2
|
||||
1.19.4
|
||||
|
|
|
@ -693,6 +693,10 @@ api.get = function(assetKey, options, callback) {
|
|||
} else if ( typeof callback !== 'function' ) {
|
||||
callback = noopfunc;
|
||||
}
|
||||
// This can happen if the method was called as a thenable.
|
||||
if ( options instanceof Object === false ) {
|
||||
options = {};
|
||||
}
|
||||
|
||||
return new Promise(resolve => {
|
||||
// start of executor
|
||||
|
|
Loading…
Reference in New Issue