Last active
April 26, 2024 22:07
-
-
Save freaktechnik/065cf4c93c66f3dac48b50b149f20736 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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