One Calendar is a privacy-first calendar web app built with Next.js. It has modern security features, including e2ee, password-protected sharing, and self-destructing share links ๐Ÿ“… calendar.xyehr.cn
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #191 from EvanTechDev/feature/refactor-project-settings-for-week-start

fix(settings): persist week start and default view updates

authored by

Evan Huang and committed by
GitHub
cb68a68d 342975fd

+2 -2
+2 -2
hooks/useLocalStorage.ts
··· 221 221 if (typeof window === "undefined") return 222 222 try { 223 223 const raw = JSON.stringify(value) 224 + inMemoryStorage.set(key, raw) 224 225 if (ENCRYPTION_STATE.enabled && ENCRYPTION_STATE.password) { 225 226 if (isSensitiveStorageKey(key)) { 226 - inMemoryStorage.set(key, raw) 227 227 encryptedSnapshots.set(key, { value: raw, failed: false }) 228 228 window.localStorage.removeItem(key) 229 229 emitStorageWrite(key) ··· 290 290 if (typeof window === "undefined") return 291 291 try { 292 292 const raw = JSON.stringify(value) 293 + inMemoryStorage.set(key, raw) 293 294 if (ENCRYPTION_STATE.enabled && ENCRYPTION_STATE.password) { 294 295 if (isSensitiveStorageKey(key)) { 295 - inMemoryStorage.set(key, raw) 296 296 encryptedSnapshots.set(key, { value: raw, failed: false }) 297 297 window.localStorage.removeItem(key) 298 298 emitStorageWrite(key)