Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stoically committed Jun 28, 2019
1 parent 84b365a commit b3c2a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class Runtime {
this.storage.local.preferences = message.payload.preferences;
await this.storage.persist();

browser.runtime.sendMessage({info: 'preferencesUpdated', fromTabId: sender.tab && sender.tab.id});
browser.runtime.sendMessage({info: 'preferencesUpdated', fromTabId: sender && sender.tab && sender.tab.id});

if (this.storage.local.preferences.contextMenu !== message.payload.preferences.contextMenu ||
this.storage.local.preferences.contextMenuBookmarks !== message.payload.preferences.contextMenuBookmarks ||
Expand Down

0 comments on commit b3c2a94

Please sign in to comment.