diff options
Diffstat (limited to 'web/templates')
-rw-r--r-- | web/templates/head.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/web/templates/head.html b/web/templates/head.html index 7ffeeec7b..e80f0a24c 100644 --- a/web/templates/head.html +++ b/web/templates/head.html @@ -68,6 +68,16 @@ console.log('detected logout from a different tab'); window.location.href = '/' + window.mm_team.name; } + + 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)) { + return; + } + + console.log('detected login from a different tab'); + window.location.href = '/'; + } }); }); </script> |