Skip to content

Commit

Permalink
remove the extraa slash (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
glg-satish-tripathi authored Oct 26, 2023
1 parent 3926c82 commit f65fd28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ function render () {
pathName = pathName.split('/')
const baseUrl = pathName[0]
if (baseUrl !== 'graphiql') {
url = `${window.location.protocol}//${host}//${baseUrl}${window.GRAPHQL_ENDPOINT}`
subscriptionUrl = `${websocketProtocol}//${host}//${baseUrl}${window.GRAPHQL_ENDPOINT}`
url = `${window.location.protocol}//${host}/${baseUrl}${window.GRAPHQL_ENDPOINT}`
subscriptionUrl = `${websocketProtocol}//${host}/${baseUrl}${window.GRAPHQL_ENDPOINT}`
} else {
url = `${window.location.protocol}//${host}${window.GRAPHQL_ENDPOINT}`
subscriptionUrl = `${websocketProtocol}//${host}${window.GRAPHQL_ENDPOINT}`
Expand Down

0 comments on commit f65fd28

Please sign in to comment.