From dfdf4ec3af1a83abe9cfbdcb295d09b9e38d6f5b Mon Sep 17 00:00:00 2001 From: Liu Ji Date: Wed, 28 Aug 2013 10:48:18 +0800 Subject: [PATCH] fix detect bug in iOS iOS returns 'typeof Blob' as 'object' instead of 'function', tested on iOS 6. --- Blob.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Blob.js b/Blob.js index 8aa6731..99589ce 100644 --- a/Blob.js +++ b/Blob.js @@ -14,8 +14,8 @@ /*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */ -if (typeof Blob !== "function" || typeof URL === "undefined") -if (typeof Blob === "function" && typeof webkitURL !== "undefined") self.URL = webkitURL; +if (!(typeof Blob === "function" || typeof Blob === 'object') || typeof URL === "undefined") +if ((typeof Blob === "function" || typeof Blob === 'object') && typeof webkitURL !== "undefined") self.URL = webkitURL; else var Blob = (function (view) { "use strict";