Fix display of some startup errors in toolbar icon tooltip

This commit is contained in:
Dan Stillman 2015-02-21 20:33:58 -05:00
parent 9a87f15956
commit 3089685b33

View file

@ -183,11 +183,11 @@ function getTooltipText(button) {
}
else {
if (Zotero) {
var errMsg = Zotero.startupError;
text = Zotero.startupError;
}
// Use defaults if necessary
if (!errMsg) {
if (!text) {
// Get the stringbundle manually
let src = 'chrome://zotero/locale/zotero.properties';
let localeService = Components.classes['@mozilla.org/intl/nslocaleservice;1']
@ -203,6 +203,7 @@ function getTooltipText(button) {
case 'save':
text = Zotero.getString('ingester.saveToZotero');
break;
}
return text;
}