this fixes an issue with the updating of redirection resources

This commit is contained in:
gorhill 2015-12-15 21:34:36 -05:00
parent e51c35814a
commit 043825285c
3 changed files with 5 additions and 5 deletions

View File

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

View File

@ -222,7 +222,6 @@ var onFirstFetchReady = function(fetched) {
return;
}
µb.loadRedirectResources();
µb.loadPublicSuffixList(onPSLReady);
};

View File

@ -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;
};