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.
1 parent 351dbf9 commit 8becc9aCopy full SHA for 8becc9a
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