Fix possible MFA enforcement redirect loop (#6030)

Этот коммит содержится в:
Joram Wilander
2017-04-07 14:47:58 -04:00
коммит произвёл George Goldberg
родитель 6e31e017eb
Коммит de3995a1ce

Просмотреть файл

@@ -60,6 +60,8 @@ function preRenderSetup(callwhendone) {
// Make sure the websockets close and reset version
$(window).on('beforeunload',
() => {
// Turn off to prevent getting stuck in a loop
$(window).off('beforeunload');
BrowserStore.setLastServerVersion('');
if (UserStore.getCurrentUser()) {
AsyncClient.viewChannel('', ChannelStore.getCurrentId() || '');