mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Fix Blob creation in Safari 7.0.
It should be !== ‘undefined’ to avoid matching everything that Blob can be a type of
This commit is contained in:
parent
1d276b0396
commit
b96811df25
1 changed files with 1 additions and 1 deletions
|
@ -1092,7 +1092,7 @@ var StatTimer = (function StatTimerClosure() {
|
|||
})();
|
||||
|
||||
PDFJS.createBlob = function createBlob(data, contentType) {
|
||||
if (typeof Blob === 'function')
|
||||
if (typeof Blob !== 'undefined')
|
||||
return new Blob([data], { type: contentType });
|
||||
// Blob builder is deprecated in FF14 and removed in FF18.
|
||||
var bb = new MozBlobBuilder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue