summaryrefslogtreecommitdiffstats
path: root/webapp/components/logged_in.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-03-23 12:11:47 -0400
committerChristopher Speller <crspeller@gmail.com>2016-03-23 15:35:38 -0400
commitc3aa84a883dcb846d618c79571960fbaa5592056 (patch)
treea542957684df775f192b35b896b09066dd035973 /webapp/components/logged_in.jsx
parent7af2e6f87a754312809aa044edd062930616401a (diff)
downloadchat-c3aa84a883dcb846d618c79571960fbaa5592056.tar.gz
chat-c3aa84a883dcb846d618c79571960fbaa5592056.tar.bz2
chat-c3aa84a883dcb846d618c79571960fbaa5592056.zip
Fixing browser store issue.
Diffstat (limited to 'webapp/components/logged_in.jsx')
-rw-r--r--webapp/components/logged_in.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/logged_in.jsx b/webapp/components/logged_in.jsx
index 7ddb6b83d..c6f7b50b1 100644
--- a/webapp/components/logged_in.jsx
+++ b/webapp/components/logged_in.jsx
@@ -6,6 +6,7 @@ import * as AsyncClient from 'utils/async_client.jsx';
import * as GlobalActions from 'action_creators/global_actions.jsx';
import UserStore from 'stores/user_store.jsx';
import ChannelStore from 'stores/channel_store.jsx';
+import BrowserStore from 'stores/browser_store.jsx';
import PreferenceStore from 'stores/preference_store.jsx';
import * as Utils from 'utils/utils.jsx';
import Constants from 'utils/constants.jsx';
@@ -84,7 +85,7 @@ export default class LoggedIn extends React.Component {
// when one tab on a browser logs out, it sets __logout__ in localStorage to trigger other tabs to log out
if (e.originalEvent.key === '__logout__' && e.originalEvent.storageArea === localStorage && e.originalEvent.newValue) {
// make sure it isn't this tab that is sending the logout signal (only necessary for IE11)
- if (window.BrowserStore.isSignallingLogout(e.originalEvent.newValue)) {
+ if (BrowserStore.isSignallingLogout(e.originalEvent.newValue)) {
return;
}
@@ -94,7 +95,7 @@ export default class LoggedIn extends React.Component {
if (e.originalEvent.key === '__login__' && e.originalEvent.storageArea === localStorage && e.originalEvent.newValue) {
// make sure it isn't this tab that is sending the logout signal (only necessary for IE11)
- if (window.BrowserStore.isSignallingLogin(e.originalEvent.newValue)) {
+ if (BrowserStore.isSignallingLogin(e.originalEvent.newValue)) {
return;
}