mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 10:52:17 -05:00
[WO-656] fix logout in chrome app
This commit is contained in:
parent
f9b1c66932
commit
f380db4e1d
@ -197,8 +197,13 @@ ctrl.logout = function() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof window.chrome !== 'undefined' && chrome.runtime && chrome.runtime.reload) {
|
||||||
|
// reload chrome app
|
||||||
|
chrome.runtime.reload();
|
||||||
|
} else {
|
||||||
// navigate to login
|
// navigate to login
|
||||||
window.location.href = '/';
|
window.location.href = '/';
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user