How to determine if pdf.js file is * default * in firefox

Starting with Firefox 19, there is a built-in PDF editor PDF.js. How can I determine if this is the default reader?

+2
source share
2 answers

It may be what you are looking for ...

http://www.pinlady.net/PluginDetect/PDFjs/

+4
source

This will test it. I cannot get to another link due to corporate firewall. I don’t know what he is saying. Perhaps this is the same.

FIDDLE HERE

<iframe src="some.pdf" id="iframe" name="iframe"></iframe> 

.

 // FireFox test for PDFJS to display PDFs. Works in 20 & 21. // If you don't test for the browser ... // IE says PDFJS is there. It isn't. // Chrome hangs on the fiddle // Safari for Windows says PDFJS isn't there $(window).load(function() { var userAgent = navigator ? navigator.userAgent.toLowerCase() : "other"; if(userAgent.indexOf("firefox") > -1) { var $iframe = $("#iframe"); var $innerDiv; try { $innerDiv = $iframe.contents().find('div'); alert("PDFJS not loaded"); } catch (e) { alert("PDFJS loaded"); } } else { alert("Not running in FireFox - no PDFJS available"); } }); 
+2
source

All Articles