[MM-40025] Stop app from redirecting to tabs when not logged in (#1870)
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
CLOSE_TEAMS_DROPDOWN,
|
||||
BROWSER_HISTORY_PUSH,
|
||||
APP_LOGGED_IN,
|
||||
APP_LOGGED_OUT,
|
||||
GET_VIEW_NAME,
|
||||
GET_VIEW_WEBCONTENTS_ID,
|
||||
} from 'common/communication';
|
||||
@@ -256,6 +257,9 @@ window.addEventListener('storage', (e) => {
|
||||
if (e.key === '__login__' && e.storageArea === localStorage && e.newValue) {
|
||||
ipcRenderer.send(APP_LOGGED_IN, viewName);
|
||||
}
|
||||
if (e.key === '__logout__' && e.storageArea === localStorage && e.newValue) {
|
||||
ipcRenderer.send(APP_LOGGED_OUT, viewName);
|
||||
}
|
||||
});
|
||||
|
||||
/* eslint-enable no-magic-numbers */
|
||||
|
Reference in New Issue
Block a user