Skip to content

Commit 9327e19

Browse files
committed
Fix undue fetch from remote server at first install
Related issue: uBlockOrigin/uBlock-issues#3761 Regression from: 69fce3a
1 parent fad0af5 commit 9327e19

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/js/assets.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,13 @@ assets.get = async function(assetKey, options = {}) {
909909
return readUserAsset(assetKey);
910910
}
911911

912+
// https://github.com/uBlockOrigin/uBlock-issues/issues/3761
913+
if ( µb.readyToFilter !== true ) {
914+
if ( options.favorLocal === undefined ) {
915+
options.favorLocal = true;
916+
}
917+
}
918+
912919
let assetDetails = {};
913920

914921
const reportBack = (content, url = '', err = undefined) => {

0 commit comments

Comments
 (0)