Merge pull request #8346 from Snuffleupagus/issue-8344

Restore the `URL.createObjectURL` check to the `createObjectURL` utility function (issue 8344)
This commit is contained in:
Yury Delendik 2017-04-27 15:42:53 -05:00 committed by GitHub
commit 7fd2084796

View File

@ -1199,7 +1199,7 @@ var createObjectURL = (function createObjectURLClosure() {
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
return function createObjectURL(data, contentType, forceDataSchema = false) {
if (!forceDataSchema) {
if (!forceDataSchema && URL.createObjectURL) {
var blob = createBlob(data, contentType);
return URL.createObjectURL(blob);
}