Console Logs removed

This commit is contained in:
Lorenz Hilpert
2023-10-10 12:05:06 +02:00
parent 3b337ea127
commit 01a26ef57a

View File

@@ -100,19 +100,15 @@ export class CacheService {
let seesionStorageKeys = Object.keys(sessionStorage).filter((key) => key.startsWith('CacheService_'));
localStorageKeys.forEach((key) => {
console.log('CacheService: cleanup', key);
const cached = this.deserialize(localStorage.getItem(key));
if (cached.until < Date.now()) {
console.log('CacheService: cleanup', key, 'removed');
localStorage.removeItem(key);
}
});
seesionStorageKeys.forEach((key) => {
console.log('CacheService: cleanup', key);
const cached = this.deserialize(sessionStorage.getItem(key));
if (cached.until < Date.now()) {
console.log('CacheService: cleanup', key, 'removed');
sessionStorage.removeItem(key);
}
});