Restore the URL.createObjectURL
check to the createObjectURL
utility function (issue 8344)
This is a regression from commit 3888a993b1
.
It turns out the even though we have a `URL` polyfill, it's still dependent on the existence of native `URL.{createObjectURL, revokeObjectURL}` functions.
Since no such thing exists in Node.js, our `createObjectURL` utility function breaks there.
This commit is contained in:
parent
e3d0cd4913
commit
ee09336f32
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user