aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-04-11 12:37:25 +0200
committerMario Vavti <mario@mariovavti.com>2018-04-11 12:37:25 +0200
commit3bd645033330c2db0952e57db1516274487c0712 (patch)
tree02d1ed484823bd2c2b34aa85f153af3e1cc3c85e /view/js/main.js
parentfee258edbe0fe20b9c5ba66968fabe15699c6458 (diff)
downloadvolse-hubzilla-3bd645033330c2db0952e57db1516274487c0712.tar.gz
volse-hubzilla-3bd645033330c2db0952e57db1516274487c0712.tar.bz2
volse-hubzilla-3bd645033330c2db0952e57db1516274487c0712.zip
also clean localStorage upon logout or channel switch
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js
index c3c2c850f..ab950e4fb 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -25,13 +25,14 @@ var liveRecurse = 0;
var savedTitle = '';
var initialLoad = true;
-// Clear the session storage if we switch channel or log out
+// Clear the session and local storage if we switch channel or log out
var cache_uid = '';
if(sessionStorage.getItem('uid') !== null) {
cache_uid = sessionStorage.getItem('uid');
}
if(cache_uid !== localUser.toString()) {
sessionStorage.clear();
+ localStorage.clear();
sessionStorage.setItem('uid', localUser.toString());
}