Fixes #3435 - Update image/ response types to create a proper blob url from the content returned.

This commit is contained in:
Owen Conti
2017-07-21 20:16:51 -06:00
parent 8bf9037bbc
commit defc45f7a6

View File

@@ -40,7 +40,7 @@ export default class ResponseBody extends React.Component {
// Image
} else if (/^image\//i.test(contentType)) {
bodyEl = <img src={ url } />
bodyEl = <img src={ window.URL.createObjectURL(content) } />
// Audio
} else if (/^audio\//i.test(contentType)) {