Wipe localForage on log out

pull/1/head
yflory 2017-11-07 14:56:50 +01:00
parent 6b9ffe8dd1
commit 0956905ca8
1 changed files with 1 additions and 0 deletions

View File

@ -327,6 +327,7 @@ define([
delete localStorage[k];
delete sessionStorage[k];
});
localForage.clear();
// Make sure we have an FS_hash in localStorage before reloading all the tabs
// so that we don't end up with tabs using different anon hashes
if (!localStorage[fileHashKey]) {