Skip to content

Commit

Permalink
Merge pull request #8346 from Snuffleupagus/issue-8344
Browse files Browse the repository at this point in the history
Restore the `URL.createObjectURL` check to the `createObjectURL` utility function (issue 8344)
  • Loading branch information
yurydelendik authored Apr 27, 2017
2 parents acdfc2d + ee09336 commit 7fd2084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 7fd2084

Please sign in to comment.