Fix error in export options window if translator has no options

This commit is contained in:
Dan Stillman 2017-07-05 15:25:26 -04:00
parent 53c3f62f1e
commit 5ff5ea88fb

View File

@ -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");