fix detect bug in iOS

iOS returns 'typeof Blob' as 'object' instead of 'function', tested on
iOS 6.
This commit is contained in:
Liu Ji
2013-08-28 10:48:18 +08:00
parent f291ea02ed
commit dfdf4ec3af
+2 -2
View File
@@ -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";