mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-03-26 13:19:49 +07:00
fix: deconstruct the reaction field (#937)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user