mirror of https://github.com/gorhill/uBlock.git
this fixes an issue with the updating of redirection resources
This commit is contained in:
parent
e51c35814a
commit
043825285c
|
@ -235,6 +235,10 @@ RedirectEngine.prototype.compileRuleFromStaticFilter = function(line) {
|
|||
srcs = option.slice(7).split('|');
|
||||
continue;
|
||||
}
|
||||
if ( option === 'first-party' ) {
|
||||
srcs.push(des);
|
||||
continue;
|
||||
}
|
||||
// One and only one type must be specified.
|
||||
if ( option in this.supportedTypes ) {
|
||||
if ( type !== undefined ) {
|
||||
|
|
|
@ -222,7 +222,6 @@ var onFirstFetchReady = function(fetched) {
|
|||
return;
|
||||
}
|
||||
|
||||
µb.loadRedirectResources();
|
||||
µb.loadPublicSuffixList(onPSLReady);
|
||||
};
|
||||
|
||||
|
|
|
@ -436,6 +436,7 @@
|
|||
};
|
||||
|
||||
this.getAvailableLists(onFilterListsReady);
|
||||
this.loadRedirectResources();
|
||||
};
|
||||
|
||||
/******************************************************************************/
|
||||
|
@ -889,10 +890,6 @@
|
|||
// remote servers.
|
||||
µb.assets.remoteFetchBarrier += 1;
|
||||
|
||||
if ( details.hasOwnProperty('assets/ublock/redirect-resources.txt') ) {
|
||||
µb.loadRedirectResources();
|
||||
}
|
||||
|
||||
var onFiltersReady = function() {
|
||||
µb.assets.remoteFetchBarrier -= 1;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue