Skip to content

Commit

Permalink
fix(scripts): accessing wrong to on installed reason
Browse files Browse the repository at this point in the history
  • Loading branch information
wanhose committed Jul 5, 2021
1 parent d1ad9bb commit 0539e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ chrome.runtime.onMessage.addListener((request, sender, responseCallback) => {
* @description Listens to updates
*/

chrome.runtime.onInstalled.addListener((reason) => {
chrome.runtime.onInstalled.addListener(({ reason }) => {
if (reason === chrome.runtime.OnInstalledReason.UPDATE) {
chrome.storage.local.clear();
}
Expand Down

0 comments on commit 0539e4f

Please sign in to comment.