fix: deconstruct the reaction field (#937)

This commit is contained in:
Zowie
2023-06-06 22:28:50 +08:00
committed by GitHub
parent c32803f138
commit 223211a239

View File

@@ -5,7 +5,7 @@
// https://developers.google.com/open-source/licenses/bsd
// Initialize the demo on install
chrome.runtime.onInstalled.addListener((reason) => {
chrome.runtime.onInstalled.addListener(({ reason }) => {
if (reason !== chrome.runtime.OnInstalledReason.INSTALL) {
return;
}