mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix undue fetch from remote server at first install
Related issue:
https://github.com/uBlockOrigin/uBlock-issues/issues/3761
Regression from:
69fce3aa6e
This commit is contained in:
parent
fad0af591f
commit
9327e19233
1 changed files with 7 additions and 0 deletions
|
|
@ -909,6 +909,13 @@ assets.get = async function(assetKey, options = {}) {
|
|||
return readUserAsset(assetKey);
|
||||
}
|
||||
|
||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/3761
|
||||
if ( µb.readyToFilter !== true ) {
|
||||
if ( options.favorLocal === undefined ) {
|
||||
options.favorLocal = true;
|
||||
}
|
||||
}
|
||||
|
||||
let assetDetails = {};
|
||||
|
||||
const reportBack = (content, url = '', err = undefined) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue