Hack to open PDFs in pdf.js when available
This commit is contained in:
parent
ca994fd22b
commit
9b76f4b5b8
1 changed files with 6 additions and 0 deletions
|
@ -355,6 +355,12 @@ Zotero.MIME = new function(){
|
|||
return isNative;
|
||||
}
|
||||
|
||||
if(mimeType === "application/pdf"
|
||||
&& "@mozilla.org/streamconv;1?from=application/pdf&to=*/*" in Components.classes) {
|
||||
// PDF can be handled internally if pdf.js is installed
|
||||
return true;
|
||||
}
|
||||
|
||||
// Is there a better way to get to navigator?
|
||||
var types = Components.classes["@mozilla.org/appshell/appShellService;1"]
|
||||
.getService(Components.interfaces.nsIAppShellService)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue