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:
Raymond Hill 2025-08-17 08:01:51 -04:00
parent fad0af591f
commit 9327e19233
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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) => {