File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11{
22 "name" : " pdfobject" ,
3- "version" : " 2.0.201604172 " ,
3+ "version" : " 2.1 " ,
44 "description" : " An open-source standards-friendly JavaScript utility for embedding PDF files into HTML documents" ,
55 "main" : " pdfobject.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change 22//jshint unused:false, strict: false
33
44/*
5- PDFObject v2.0.201604172
5+ PDFObject v2.1
66 https://github.com/pipwerks/PDFObject
77 Copyright (c) 2008-2016 Philip Hutchison
88 MIT-style license: http://pipwerks.mit-license.org/
4848 getTargetElement ,
4949 generatePDFJSiframe ,
5050 isIOS = ( function ( ) { return ( / i p h o n e | i p a d | i p o d / i. test ( navigator . userAgent . toLowerCase ( ) ) ) ; } ) ( ) ,
51+ // https://stackoverflow.com/a/9851769/1026742
52+ isFirefox = typeof InstallTrigger !== 'undefined' ,
5153 generateEmbedElement ;
5254
5355
7880 supportsPdfActiveX = function ( ) { return ! ! ( createAXO ( "AcroPDF.PDF" ) || createAXO ( "PDF.PdfCtrl" ) ) ; } ;
7981
8082 //Determines whether PDF support is available
81- supportsPDFs = ( supportsPdfMimeType || ( isIE ( ) && supportsPdfActiveX ( ) ) ) ;
83+ supportsPDFs = ( supportsPdfMimeType || isFirefox || ( isIE ( ) && supportsPdfActiveX ( ) ) ) ;
8284
8385 //Create a fragment identifier for using PDF Open parameters when embedding PDF
8486 buildFragmentString = function ( pdfParams ) {
251253 supportsPDFs : ( function ( ) { return supportsPDFs ; } ) ( )
252254 } ;
253255
254- } ) ) ;
256+ } ) ) ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ### This is a fork of the main library to add-in an opinionated Firefox check for inline PDF support
2+
13PDFObject is a lightweight JavaScript utility for dynamically embedding PDFs in HTML documents.
24
35Copyright (c) 2008-2016 Philip Hutchison
You can’t perform that action at this time.
0 commit comments