Fix in-browser PDF viewing in Firefox 53

Use file:// URLs for viewing attachments instead of zotero://attachment,
which the new version of PDF.js in Fx53 doesn't like.
This commit is contained in:
Dan Stillman 2017-04-21 07:37:54 -04:00
parent 18d89cbdf0
commit 6333e0b5ad

View File

@ -3572,7 +3572,7 @@ var ZoteroPane = new function()
}
if (!externalViewer) {
var url = 'zotero://attachment/' + itemID + '/';
let url = Services.io.newFileURI(file).spec;
this.loadURI(url, event);
}
else {