From 1e2baeb91bf3b5d06d77ba3c6a14b86abbd7abe5 Mon Sep 17 00:00:00 2001 From: Kyle Shockey Date: Thu, 12 Apr 2018 17:56:35 -0700 Subject: [PATCH] `this.downloadJSON` -> `this.downloadText` we're always saving as `.txt`, so JSON is a misnomer --- src/core/components/highlight-code.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 (
-
Download
+
Download