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
@ -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…
x
Reference in New Issue
Block a user