Skip to content

Commit

Permalink
Fix error when storage is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
foooomio committed Jan 15, 2018
1 parent f8e64a0 commit 013d703
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const rules = {
});

chrome.storage.sync.get(null, data =>
data.rules.map(rule => this.add(rule))
data.rules && data.rules.map(rule => this.add(rule))
);
}
};
Expand Down

0 comments on commit 013d703

Please sign in to comment.