Fix detection of newer versions of pdf.js

This commit is contained in:
Simon Kornblith 2012-11-01 15:44:52 -04:00
parent c9beb5b45a
commit 2139603ae1

View file

@ -1373,7 +1373,7 @@ Zotero.Attachments = new function(){
var win = doc.defaultView;
if(win) {
win = win.wrappedJSObject;
if(win && "PDFJS" in win && win.PDFJS.isFirefoxExtension) {
if(win && "PDFJS" in win) {
return true;
}
}