Debug attempt

This commit is contained in:
Jordan Wages 2025-07-05 19:33:05 -05:00
commit 9724c19b7d
2 changed files with 7 additions and 1 deletions

View file

@ -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;