diff --git a/background.js b/background.js index 710904b..2a88df2 100644 --- a/background.js +++ b/background.js @@ -34,6 +34,10 @@ async function handleClick(tab, e) { return; } + if (!tab.url) { + throw 'missing tab.url'; + } + const imgURL = await browser.tabs.captureTab(tab.id); let noteParts = [