From 37b5e8f559b5c9c84c6cefaf16a5339b2868f9bb Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 26 Jan 2021 17:44:39 +0100 Subject: [PATCH] Keep theme on logout --- www/common/outer/local-store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/outer/local-store.js b/www/common/outer/local-store.js index 95a3bd88b..4d87a3b21 100644 --- a/www/common/outer/local-store.js +++ b/www/common/outer/local-store.js @@ -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); }