aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js')
-rw-r--r--view/js/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js
index f15636a35..19e73c1d2 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -33,14 +33,14 @@ var sse_partial_result = false;
// take care of tab/window reloads on channel change
if(localStorage.getItem('uid') !== localUser.toString()) {
+ localStorage.clear();
+ sessionStorage.clear();
localStorage.setItem('uid', localUser.toString());
}
window.onstorage = function(e) {
if(e.key === 'uid' && parseInt(e.newValue) !== localUser) {
if(window_needs_alert) {
window_needs_alert = false;
- localStorage.clear();
- sessionStorage.clear();
alert("Your identity has changed. Page reload required!");
window.location.reload();
return;