From 34d22337b3e57420cdd96259f8878af590781b64 Mon Sep 17 00:00:00 2001 From: Martin Raifer Date: Mon, 29 Apr 2013 18:17:06 +0300 Subject: [PATCH] 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. --- Blob.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Blob.js b/Blob.js index 9743c84..f669f16 100644 --- a/Blob.js +++ b/Blob.js @@ -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";