From 113bf14718d9fc513821a4e2bbcc7e2ab45e6269 Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Tue, 26 Nov 2019 14:20:57 +0530 Subject: [PATCH] refactor(graphql): replace instances of var with const --- pages/graphql.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/graphql.vue b/pages/graphql.vue index 0de838f2b..3c1494463 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -59,7 +59,7 @@ @change=" $store.commit('setGQLHeaderKey', { index, - value: $event.target.value + value: $event.target.value }) " autofocus @@ -424,9 +424,9 @@ export default { this.responseBodyMaxLines = (this.responseBodyMaxLines == Infinity) ? 16 : Infinity; }, downloadResponse() { - var dataToWrite = JSON.stringify(this.schemaString, null, 2) - var file = new Blob([dataToWrite], { type: "application/json" }); - var a = document.createElement("a"), + const dataToWrite = JSON.stringify(this.schemaString, null, 2) + const file = new Blob([dataToWrite], { type: "application/json" }); + const a = document.createElement("a"), url = URL.createObjectURL(file); a.href = url; a.download = (