Merge pull request #63 from wagesj45/codex/fix-issues-with--reasoning--page-loading
Fix reasoning popup
This commit is contained in:
commit
3a10609399
3 changed files with 9 additions and 1 deletions
|
@ -113,6 +113,7 @@ Sortana requests the following Thunderbird permissions:
|
|||
- `messagesTagsList` – retrieve existing message tags for rule actions.
|
||||
- `accountsRead` – list accounts and folders for move actions.
|
||||
- `menus` – add context menu commands.
|
||||
- `tabs` – open new tabs and query the active tab.
|
||||
|
||||
## Thunderbird Add-on Store Disclosures
|
||||
|
||||
|
|
|
@ -8,6 +8,12 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||
const tabId = tabs[0]?.id;
|
||||
const msgs = tabId ? await browser.messageDisplay.getDisplayedMessages(tabId) : [];
|
||||
id = msgs[0]?.id;
|
||||
if (!id) {
|
||||
const mailTabs = await browser.mailTabs.query({ active: true, currentWindow: true });
|
||||
const mailTabId = mailTabs[0]?.id;
|
||||
const selected = mailTabId !== undefined ? await browser.mailTabs.getSelectedMessages(mailTabId) : null;
|
||||
id = selected?.messages?.[0]?.id;
|
||||
}
|
||||
} catch (e) {
|
||||
console.error('failed to determine message id', e);
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
"messagesTagsList",
|
||||
"accountsRead",
|
||||
"menus",
|
||||
"scripting"
|
||||
"scripting",
|
||||
"tabs"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue