fix(scripts): accessing wrong to on installed reason

This commit is contained in:
wanhose 2021-07-05 18:17:52 +02:00
parent d1ad9bbe42
commit 0539e4fb85

View File

@ -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();
}