Don't log an error when no bibliography locale is set
Some checks are pending
CI / Detect changes (push) Waiting to run
CI / Test () (push) Blocked by required conditions
CI / Test (macOS NFS) (push) Blocked by required conditions
CI / Test (Windows arm64) (push) Blocked by required conditions
CI / Test (Windows x64) (push) Blocked by required conditions
CI / Utilities Tests (push) Waiting to run
CI / Build, Upload (push) Waiting to run

In the error console in https://forums.zotero.org/discussion/133857/
This commit is contained in:
Dan Stillman 2026-09-22 10:41:27 -04:00
parent 5245b6cf5e
commit 4e3b208e4a

View file

@ -135,13 +135,15 @@
}
set value(val) {
try {
// eslint-disable-next-line no-new
new Intl.Locale(val);
}
catch (e) {
Zotero.logError(e);
val = '';
if (val) {
try {
// eslint-disable-next-line no-new
new Intl.Locale(val);
}
catch (e) {
Zotero.logError(e);
val = '';
}
}
val = Zotero.Styles.resolveLocale(val);