Skip to content

Commit

Permalink
Fix handling a preference change
Browse files Browse the repository at this point in the history
  • Loading branch information
dguo committed Apr 8, 2018
1 parent 1970be4 commit eec93ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ browser.alarms.onAlarm.addListener(() => {

browser.storage.onChanged.addListener(changes => {
if (changes.hasOwnProperty('lockDate')) {
if (changes.lockDate) {
if (changes.lockDate.newValue) {
browser.alarms.clearAll();
} else {
createAlarm();
Expand Down

0 comments on commit eec93ac

Please sign in to comment.