Skip to content

Commit 8743974

Browse files
committed
1 parent 363302a commit 8743974

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

EnvironmentalOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async function isMozilla() {
3737

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

internal/LoadAndSave.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ function setManagedOption(option, optionGroup, elOption = getElementFromOptionId
165165
}
166166

167167
return gettingOption.then((res) => {
168+
// This ensures Chrom/ium compatbility, see https://github.com/TinyWebEx/AutomaticSettings/issues/12
169+
if (!res || Object.keys(res).length === 0) {
170+
return Promise.reject();
171+
};
172+
168173
showManagedInfo();
169174

170175
console.info("managed config found", res, elOption);

0 commit comments

Comments
 (0)