fix detect bug in iOS
iOS returns 'typeof Blob' as 'object' instead of 'function', tested on iOS 6.
This commit is contained in:
@@ -14,8 +14,8 @@
|
|||||||
|
|
||||||
/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
|
/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
|
||||||
|
|
||||||
if (typeof Blob !== "function" || typeof URL === "undefined")
|
if (!(typeof Blob === "function" || typeof Blob === 'object') || typeof URL === "undefined")
|
||||||
if (typeof Blob === "function" && typeof webkitURL !== "undefined") self.URL = webkitURL;
|
if ((typeof Blob === "function" || typeof Blob === 'object') && typeof webkitURL !== "undefined") self.URL = webkitURL;
|
||||||
else var Blob = (function (view) {
|
else var Blob = (function (view) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user