diff --git a/src/core/components/highlight-code.jsx b/src/core/components/highlight-code.jsx index 62ffec07..a52b3fe4 100644 --- a/src/core/components/highlight-code.jsx +++ b/src/core/components/highlight-code.jsx @@ -22,10 +22,8 @@ export default class HighlightCode extends Component { } downloadJSON = () => { - let content = this.props.value - let fileName = "response" - let fileToSave = new Blob([content], {type: "text/plain"}) - saveAs(fileToSave, fileName) + let fileToSave = new Blob([this.props.value], {type: "text/plain"}) + saveAs(fileToSave, "response") } render () { @@ -34,12 +32,8 @@ export default class HighlightCode extends Component { return (
- { value }
-
+ {value}