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:
commit
7fd2084796
@ -1199,7 +1199,7 @@ var createObjectURL = (function createObjectURLClosure() {
|
|||||||
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
||||||
|
|
||||||
return function createObjectURL(data, contentType, forceDataSchema = false) {
|
return function createObjectURL(data, contentType, forceDataSchema = false) {
|
||||||
if (!forceDataSchema) {
|
if (!forceDataSchema && URL.createObjectURL) {
|
||||||
var blob = createBlob(data, contentType);
|
var blob = createBlob(data, contentType);
|
||||||
return URL.createObjectURL(blob);
|
return URL.createObjectURL(blob);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user