Don't try to register attachment callback listener in Firefox
This commit is contained in:
parent
fa3910f436
commit
512ae575fa
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ Zotero.Translate.ItemSaver = function(libraryID, attachmentMode, forceTagType, d
|
|||
}
|
||||
|
||||
// Add listener for callbacks
|
||||
if(!Zotero.Translate.ItemSaver._attachmentCallbackListenerAdded) {
|
||||
if(Zotero.Messaging && !Zotero.Translate.ItemSaver._attachmentCallbackListenerAdded) {
|
||||
Zotero.Messaging.addMessageListener("attachmentCallback", function(data) {
|
||||
var id = data[0],
|
||||
status = data[1];
|
||||
|
|
Loading…
Reference in a new issue