📄 GPL V3 license
This commit is contained in:
+1
-39
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user