Debug attempt
This commit is contained in:
parent
f40715add1
commit
9724c19b7d
2 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||
|
||||
if (!id) {
|
||||
try {
|
||||
const tabs = await browser.tabs.query({ active: true, lastFocusedWindow: true });
|
||||
const tabs = await messenger.tabs.query({ active: true, currentWindow: true });
|
||||
const tabId = tabs[0]?.id;
|
||||
const msgs = tabId ? await browser.messageDisplay.getDisplayedMessages(tabId) : [];
|
||||
id = msgs[0]?.id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue