This commit is contained in:
Jiiks 2018-01-12 08:41:47 +02:00
parent b57255487a
commit 7be0ab71fc
2 changed files with 2 additions and 6 deletions

View File

@ -27195,7 +27195,6 @@ class Global {
first() {
if (window.__bd) {
window.tt = window.__bd;
this.__globals = window.__bd;
window.__bd = {
setWS: this.setWS
@ -27204,8 +27203,6 @@ class Global {
}
setWS(wSocket) {
console.log("SETWS!");
window.testing = this;
this.__globals.wsHook = wSocket;
}

View File

@ -20,11 +20,10 @@
constructor(url, protocols) {
super(url, protocols);
this.hook(url);
console.log("IS IT RUNNING ASYNC?");
this.hook(url, protocols);
}
hook(url) {
hook(url, protocols) {
console.info(`[BetterDiscord|WebSocket Proxy] new WebSocket detected, url: ${url}`);
if (!url.includes('gateway.discord.gg')) return;