rewrite Blob when URL object is not present

Opera 12.10 supports Blob, but [doesn't support URL.createObjectURL](http://www.opera.com/docs/specs/presto2.12/apis/#file). As BlobBuilder.js has its own URL.createObjectURL, it cannot work properly when the blob is not a "FakeBlob" (and URL is undefined).

This fixes https://github.com/eligrey/FileSaver.js/issues/10 for example.
This commit is contained in:
Martin Raifer
2013-04-29 18:17:06 +03:00
parent 0d04b64b89
commit 34d22337b3
+1 -1
View File
@@ -14,7 +14,7 @@
/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
if (typeof Blob !== "function")
if (typeof Blob !== "function" || typeof URL === "undefined")
var Blob = (function (view) {
"use strict";