mirror of
https://github.com/zotero/zotero.git
synced 2026-10-07 02:58:09 +00:00
Don't log an error when no bibliography locale is set
In the error console in https://forums.zotero.org/discussion/133857/
(cherry picked from commit 4e3b208e4a)
This commit is contained in:
parent
9a2d0219f2
commit
1265d79825
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