Web: Socket: Added window refs
This commit is contained in:
parent
abb0fa6520
commit
c74d88608f
@ -887,6 +887,9 @@ class SettingsStore {
|
||||
this.publicRoomKey,
|
||||
"/files",
|
||||
);
|
||||
|
||||
// TODO: comment this line
|
||||
window.socketFilesClient = this.sockerFilesClient;
|
||||
}
|
||||
|
||||
return this.sockerFilesClient;
|
||||
@ -901,6 +904,9 @@ class SettingsStore {
|
||||
this.publicRoomKey,
|
||||
"/onlineusers",
|
||||
);
|
||||
|
||||
// TODO: comment this line
|
||||
window.socketUsersClient = this.socketUsersClient;
|
||||
}
|
||||
|
||||
return this.socketUsersClient;
|
||||
|
@ -119,9 +119,6 @@ class SocketIOHelper {
|
||||
console.log("socket connect error", err),
|
||||
);
|
||||
this.client.on("disconnect", () => console.log("socket is disconnected"));
|
||||
|
||||
// DEV tests
|
||||
// window.socketHelper = this;
|
||||
}
|
||||
|
||||
get isEnabled() {
|
||||
|
Loading…
Reference in New Issue
Block a user