Skip to content

Commit

Permalink
[geelen#33] "Polyfill" URL.createObjectURL
Browse files Browse the repository at this point in the history
  • Loading branch information
stereobooster committed Jun 3, 2017
1 parent 7c3d166 commit aad1bd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/snapshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default (protocol, host, path, delay) => {
},
virtualConsole: jsdom.createVirtualConsole().sendTo(console),
created: (err, window) => {
window.URL = { createObjectURL: () => {} }
if (err) reject(err)
window.reactSnapshotRender = () => {
reactSnapshotRenderCalled = true
Expand Down

0 comments on commit aad1bd4

Please sign in to comment.