diff options
Diffstat (limited to 'view/js/main.js')
-rw-r--r-- | view/js/main.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/view/js/main.js b/view/js/main.js index dd7b81ad4..02f2f6a3d 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()); } |