summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-09 12:57:47 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-09 12:57:47 +0200
commitc553a61065e61b9a4497a2bed7ddbc273873f709 (patch)
treeb38fae7ba94fef9fc40261b06247d6f651af5f0d
parent:sparkles: ping route (diff)
downloadserver-c553a61065e61b9a4497a2bed7ddbc273873f709.tar.xz
:bug: fix endpoints in test client
-rw-r--r--client_test/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/client_test/index.html b/client_test/index.html

index da970e4f..c1cd114c 100644 --- a/client_test/index.html +++ b/client_test/index.html
@@ -13,13 +13,13 @@ window.GLOBAL_ENV = { API_ENDPOINT: "/api", API_VERSION: 9, - GATEWAY_ENDPOINT: "ws://localhost:3002", + GATEWAY_ENDPOINT: `${location.protocol === "https:" ? "wss://" : "ws://"}${location.hostname}:3002`, WEBAPP_ENDPOINT: "", - CDN_HOST: "//localhost:3003", + CDN_HOST: `//${location.hostname}:3002`, ASSET_ENDPOINT: "", MEDIA_PROXY_ENDPOINT: "https://media.discordapp.net", - WIDGET_ENDPOINT: "//localhost:3001/widget", - INVITE_HOST: "discord.gg", + WIDGET_ENDPOINT: `//${location.host}/widget`, + INVITE_HOST: `${location.hostname}`, GUILD_TEMPLATE_HOST: "discord.new", GIFT_CODE_HOST: "discord.gift", RELEASE_CHANNEL: "stable",