diff --git a/src/core/components/highlight-code.jsx b/src/core/components/highlight-code.jsx index c5e5f311..9ba4e0f9 100644 --- a/src/core/components/highlight-code.jsx +++ b/src/core/components/highlight-code.jsx @@ -21,7 +21,7 @@ export default class HighlightCode extends Component { this.el = c } - downloadJSON = () => { + downloadText = () => { let fileToSave = new Blob([this.props.value], {type: "text/plain"}) saveAs(fileToSave, "response") } @@ -50,7 +50,7 @@ export default class HighlightCode extends Component { return (