Skip to content

Commit 363302a

Browse files
committed
Fix Thunderbird compatibility by providing a workaround
Fixes #11
1 parent f62226d commit 363302a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

EnvironmentalOptions.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ async function isMobile() {
3535
async function isMozilla() {
3636
const browserInfo = await browser.runtime.getBrowserInfo();
3737

38-
return browserInfo.vendor === "Mozilla";
38+
// Thunderbird is explicitly checked as a workaround as Thunderbird does not return the vendor correctly
39+
// see https://bugzilla.mozilla.org/show_bug.cgi?id=1702722
40+
// and https://github.com/TinyWebEx/AutomaticSettings/issues/11
41+
return browserInfo.vendor === "Mozilla" || browserInfo.name === "Thunderbird";
3942
}
4043

4144
/**

0 commit comments

Comments
 (0)