mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
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
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:
parent
5245b6cf5e
commit
4e3b208e4a
1 changed files with 9 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue