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:
parent
18d89cbdf0
commit
6333e0b5ad
|
@ -3572,7 +3572,7 @@ var ZoteroPane = new function()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!externalViewer) {
|
if (!externalViewer) {
|
||||||
var url = 'zotero://attachment/' + itemID + '/';
|
let url = Services.io.newFileURI(file).spec;
|
||||||
this.loadURI(url, event);
|
this.loadURI(url, event);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user