Skip to content

Commit

Permalink
Make protocol dynamic
Browse files Browse the repository at this point in the history
  • Loading branch information
puchm committed Sep 21, 2021
1 parent dddc5fa commit 841a3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/main.js
Expand Up @@ -19,7 +19,7 @@ const importer = {
function render () {
const host = window.location.host

const url = `http://${host}${window.GRAPHQL_ENDPOINT}`
const url = `${window.location.protocol}//${host}${window.GRAPHQL_ENDPOINT}`
const subscriptionUrl = `ws://${host}${window.GRAPHQL_ENDPOINT}`

const fetcher = GraphiQL.createFetcher({
Expand Down

0 comments on commit 841a3c0

Please sign in to comment.