Don't try to register attachment callback listener in Firefox

This commit is contained in:
Simon Kornblith 2012-04-16 20:18:56 -04:00
parent fa3910f436
commit 512ae575fa

View file

@ -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];