mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Comment onLoggedOut & consistent comment style
This commit is contained in:
parent
afa46a855b
commit
e144da75e3
1 changed files with 7 additions and 1 deletions
|
@ -79,6 +79,10 @@ function startMatrixClient() {
|
|||
MatrixClientPeg.start();
|
||||
}
|
||||
|
||||
/*
|
||||
* Stops a running client and all related services, used after
|
||||
* a session has been logged out / ended.
|
||||
*/
|
||||
function onLoggedOut() {
|
||||
if (window.localStorage) {
|
||||
const hsUrl = window.localStorage.getItem("mx_hs_url");
|
||||
|
@ -95,7 +99,9 @@ function onLoggedOut() {
|
|||
dis.dispatch({action: 'on_logged_out'});
|
||||
}
|
||||
|
||||
// stop all the background processes related to the current client
|
||||
/**
|
||||
* Stop all the background processes related to the current client
|
||||
*/
|
||||
function _stopMatrixClient() {
|
||||
Notifier.stop();
|
||||
UserActivity.stop();
|
||||
|
|
Loading…
Reference in a new issue