1
0
Fork 0
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:
Hengjie 2013-12-06 02:10:41 +13:00
parent 1d276b0396
commit b96811df25

View file

@ -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();