From 848535a34301071fd2b17dc82930484757051262 Mon Sep 17 00:00:00 2001 From: Levin Rickert Date: Tue, 7 Apr 2020 14:24:44 +0200 Subject: [PATCH] Fix GQL introspection query not sent through extension --- pages/graphql.vue | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/pages/graphql.vue b/pages/graphql.vue index fc397406a..c0235b1f5 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -302,9 +302,9 @@

@@ -505,7 +505,7 @@ export default { try { let headers = {} - this.headers.forEach(header => { + this.headers.forEach((header) => { headers[header.key] = header.value }) @@ -557,7 +557,7 @@ export default { }) let headers = {} - this.headers.forEach(header => { + this.headers.forEach((header) => { headers[header.key] = header.value }) @@ -571,19 +571,8 @@ export default { data: query, } - const reqConfig = this.$store.state.postwoman.settings.PROXY_ENABLED - ? { - method: "post", - url: - this.$store.state.postwoman.settings.PROXY_URL || - `https://postwoman.apollosoftware.xyz/`, - data: reqOptions, - } - : reqOptions + const data = await sendNetworkRequest(reqOptions, this.$store) - const res = await axios(reqConfig) - - const data = this.$store.state.postwoman.settings.PROXY_ENABLED ? res.data : res const schema = gql.buildClientSchema(data.data.data) this.schema = gql.printSchema(schema, { commentDescriptions: true,