summary refs log tree commit diff
path: root/client_test/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'client_test/index.html')
-rw-r--r--client_test/index.html40
1 files changed, 1 insertions, 39 deletions
diff --git a/client_test/index.html b/client_test/index.html

index 695ad52d..915a3378 100644 --- a/client_test/index.html +++ b/client_test/index.html
@@ -3,17 +3,13 @@ <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> - <title>Discord Open Source Client</title> + <title>Discord Test Client</title> </head> <body> <div id="app-mount"></div> <script> window.__OVERLAY__ = /overlay/.test(location.pathname); - </script> - <script> window.__BILLING_STANDALONE__ = /^\/billing/.test(location.pathname); - </script> - <script> window.GLOBAL_ENV = { API_ENDPOINT: "/api", WEBAPP_ENDPOINT: "", @@ -44,40 +40,6 @@ "DeveloperOptionsStore", `{"trace":false,"canary":false,"logGatewayEvents":true,"logOverlayEvents":false,"logAnalyticsEvents":false,"sourceMapsEnabled":false,"axeEnabled":false}` ); - - !(function () { - if (null != window.WebSocket) { - var n = function (n) { - try { - var e = localStorage.getItem(n); - return null == e ? null : JSON.parse(e); - } catch (n) { - return null; - } - }, - e = n("token"), - o = n("gatewayURL"); - if (e && o && !window.__OVERLAY__) { - var r = null != window.DiscordNative || null != window.require ? "etf" : "json", - t = o + "/?encoding=" + r + "&v=8&compress=zlib-stream"; - console.log("[FAST CONNECT] " + t + ", encoding: " + r + ", version: 8"); - var a = new WebSocket(t); - a.binaryType = "arraybuffer"; - var s = Date.now(), - i = { open: !1, gateway: t, messages: [] }; - (a.onopen = function () { - console.log("[FAST CONNECT] connected in " + (Date.now() - s) + "ms"), (i.open = !0); - }), - (a.onclose = a.onerror = function () { - window._ws = null; - }), - (a.onmessage = function (n) { - i.messages.push(n); - }), - (window._ws = { ws: a, state: i }); - } - } - })(); </script> <script src="/assets/2b51ccc483c24624b4e4.js"></script> <script src="/assets/f70adb19750694f9b703.js"></script>