Don't make network calls without a token

This commit is contained in:
Ian Gulliver
2022-10-20 20:40:28 -07:00
parent f0ec5ec86d
commit 787df16a48

View File

@@ -95,6 +95,10 @@ async function handleChangeInt(e) {
const cfg = await browser.storage.sync.get();
if (!cfg.token) {
throw 'missing token';
}
const type = key.split('_', 1)[0];
await typeHandlers.get(type)(cfg, task);