We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0413410 + 2b3a590 commit 5e72f68Copy full SHA for 5e72f68
src/core/components/response-body.jsx
@@ -43,7 +43,11 @@ export default class ResponseBody extends React.Component {
43
44
// Image
45
} else if (/^image\//i.test(contentType)) {
46
- bodyEl = <img style={{ maxWidth: "100%" }} src={ window.URL.createObjectURL(content) } />
+ if(contentType.includes("svg")) {
47
+ bodyEl = <div> { content } </div>
48
+ } else {
49
+ bodyEl = <img style={{ maxWidth: "100%" }} src={ window.URL.createObjectURL(content) } />
50
+ }
51
52
// Audio
53
} else if (/^audio\//i.test(contentType)) {
0 commit comments