|
|
@ -100,7 +100,7 @@ define([
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
Object.keys(localStorage || {}).forEach(function (k) {
|
|
|
|
Object.keys(localStorage || {}).forEach(function (k) {
|
|
|
|
// Remvoe everything in localStorage except CACHE and FS_hash
|
|
|
|
// 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];
|
|
|
|
delete localStorage[k];
|
|
|
|
});
|
|
|
|
});
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|
} catch (e) { console.error(e); }
|
|
|
|