commit 5ff5ea88fbe8e90c78ed0a86df0e7d7393eae465
parent 53c3f62f1ebbeb4d2f57d59c76d7fd5abbc31624
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 5 Jul 2017 15:25:26 -0400
Fix error in export options window if translator has no options
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/exportOptions.js b/chrome/content/zotero/exportOptions.js
@@ -162,7 +162,7 @@ var Zotero_File_Interface_Export = new function() {
}
// handle charset popup
- if(_charsets && translatorOptions.exportCharset) {
+ if(_charsets && translatorOptions && translatorOptions.exportCharset) {
optionsBox.hidden = undefined;
document.getElementById("charset-box").hidden = undefined;
var charsetMenu = document.getElementById(OPTION_PREFIX+"exportCharset");