added online session socket
This commit is contained in:
parent
f2c09d122c
commit
f234963109
@ -374,6 +374,10 @@ class SettingsStore {
|
||||
return window.location.pathname === "/rooms/share";
|
||||
}
|
||||
|
||||
get isSessionsPage() {
|
||||
return window.location.pathname === "/portal-settings/security/sessions";
|
||||
}
|
||||
|
||||
setMainBarVisible = (visible) => {
|
||||
this.mainBarVisible = visible;
|
||||
};
|
||||
@ -819,6 +823,12 @@ class SettingsStore {
|
||||
return new SocketIOHelper(socketUrl, this.publicRoomKey);
|
||||
}
|
||||
|
||||
get onlineSessionsSocket() {
|
||||
const socketUrl = this.isSessionsPage && this.socketUrl;
|
||||
|
||||
return new SocketIOHelper(socketUrl, null);
|
||||
}
|
||||
|
||||
getBuildVersionInfo = async () => {
|
||||
let versionInfo = null;
|
||||
if (window?.__ASC_INITIAL_EDITOR_STATE__?.versionInfo)
|
||||
|
Loading…
Reference in New Issue
Block a user