Update more try-wrapped calls to getString

This commit is contained in:
Abe Jellinek 2022-03-25 16:49:52 -07:00
parent 82228a1072
commit 470d9cd7c2
2 changed files with 8 additions and 2 deletions

View file

@ -1575,7 +1575,10 @@ function formatColumnName(column) {
}
else if (/^[^\s]+\w\.\w[^\s]+$/.test(column.label)) {
try {
return Zotero.getString(column.label);
let labelString = Zotero.getString(column.label);
if (labelString !== column.label) {
return labelString;
}
}
catch (e) {
// ignore missing string

View file

@ -89,7 +89,10 @@ Zotero.Exception.Alert.prototype = {
get title() {
if(this._title) {
try {
return Zotero.getString(this._title);
let titleString = Zotero.getString(this._title);
if (titleString !== this._title) {
return titleString;
}
} catch(e) {}
}
try {