Verifying simple script messaging.

This commit is contained in:
Ryan Breen
2023-01-23 23:21:17 -05:00
parent 25da1d0cab
commit 03af8e71ad
3 changed files with 21 additions and 2 deletions

View File

@@ -10,7 +10,8 @@ const storage = browser.storage.local;
browser.runtime.onInstalled.addListener(async ({ reason }) => {
// I would like to be able to skip this for development purposes
let ignoreHook = (await storage.get('ignoreInstallHook')).ignoreInstallHook;
let ignoreHook = (await storage.get({ ignoreInstallHook: false }))
.ignoreInstallHook;
if (ignoreHook === true) {
return;
}