Skip to content

Commit

Permalink
Fix startup bug where filterList is read before being defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Nateowami committed Jun 16, 2016
1 parent 7808f7d commit e9250dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/background/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function init() {
*/
function manageRequest(request) {
// Only run if filtering is enabled
if(!backloader.enabled) return;
if(!backloader.enabled || !filterList) return;

for(var r = 0; r < filterList.length; r++) {
if(!filterList[r].isEnabled) continue;
Expand Down

0 comments on commit e9250dc

Please sign in to comment.