Adding persmission.

This commit is contained in:
Jordan Wages 2025-06-25 03:02:46 -05:00
commit b23d601637
3 changed files with 3 additions and 2 deletions

View file

@ -36,6 +36,7 @@ Additional documentation exists outside this repository.
- Development guide: [Webextention-API for Thunderbird](https://webextension-api.thunderbird.net/en/stable/) - Development guide: [Webextention-API for Thunderbird](https://webextension-api.thunderbird.net/en/stable/)
- [Messages API](https://webextension-api.thunderbird.net/en/stable/messages.html) - [Messages API](https://webextension-api.thunderbird.net/en/stable/messages.html)
- [Message Tags API](https://webextension-api.thunderbird.net/en/stable/messages.tags.html)
- [Storage API](https://webextension-api.thunderbird.net/en/stable/storage.html) - [Storage API](https://webextension-api.thunderbird.net/en/stable/storage.html)
- Issue tracker: [Thunderbird tracker on Bugzilla](https://bugzilla.mozilla.org/describecomponents.cgi?product=Thunderbird) - Issue tracker: [Thunderbird tracker on Bugzilla](https://bugzilla.mozilla.org/describecomponents.cgi?product=Thunderbird)

View file

@ -98,7 +98,7 @@ if (typeof messenger !== "undefined" && messenger.messages?.onNewMailReceived) {
} }
}); });
} else { } else {
logger.aiLog("messenger.messages API unavailable, skipping new mail listener", {level: 'warn'}); logger.aiLog("messenger.messages API unavailable, skipping new mail listener", { level: 'warn' });
} }
// Catch any unhandled rejections // Catch any unhandled rejections

View file

@ -23,5 +23,5 @@
"page": "options/options.html", "page": "options/options.html",
"open_in_tab": true "open_in_tab": true
}, },
"permissions": [ "storage", "messagesRead" ] "permissions": [ "storage", "messagesRead", "accountsRead" ]
} }