Skip to content

Instantly share code, notes, and snippets.

@freaktechnik
Last active April 26, 2024 22:07
Show Gist options
  • Save freaktechnik/065cf4c93c66f3dac48b50b149f20736 to your computer and use it in GitHub Desktop.
Save freaktechnik/065cf4c93c66f3dac48b50b149f20736 to your computer and use it in GitHub Desktop.
browser.tabs.query({windowId: myWindowId, active: true})
.then((tabs) => {
for (let pane in panel.content){panel.content[pane].textContent = "";}
for (let pane in panel.info){panel.info[pane].textContent = "";}
return Promise.all([tabs[0].url, browser.storage.local.get(tabs[0].url)]);
})
.then(([ tabURL, storedInfo ]) => {
debugger;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment