Keep theme on logout

pull/1/head
yflory 2021-01-26 17:44:39 +01:00
parent 27994d1a6f
commit 37b5e8f559
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ define([
try {
Object.keys(localStorage || {}).forEach(function (k) {
// Remvoe everything in localStorage except CACHE and FS_hash
if (/^CRYPTPAD_CACHE/.test(k) || /^LESS_CACHE/.test(k) || k === Constants.fileHashKey) { return; }
if (/^CRYPTPAD_CACHE/.test(k) || /^LESS_CACHE/.test(k) || k === Constants.fileHashKey || /^CRYPTPAD_STORE|colortheme/.test(k)) { return; }
delete localStorage[k];
});
} catch (e) { console.error(e); }