Skip to content

Commit

Permalink
this fixes an issue with the updating of redirection resources
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Dec 16, 2015
1 parent e51c358 commit 0438252
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/js/redirect-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down
1 change: 0 additions & 1 deletion src/js/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ var onFirstFetchReady = function(fetched) {
return;
}

µb.loadRedirectResources();
µb.loadPublicSuffixList(onPSLReady);
};

Expand Down
5 changes: 1 addition & 4 deletions src/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@
};

this.getAvailableLists(onFilterListsReady);
this.loadRedirectResources();
};

/******************************************************************************/
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit 0438252

Please sign in to comment.