(key: string, value: unknown)
| 47 | }; |
| 48 | |
| 49 | const safeWrite = (key: string, value: unknown) => { |
| 50 | if (typeof window === "undefined") return; |
| 51 | try { |
| 52 | window.localStorage.setItem(key, JSON.stringify(value)); |
| 53 | } catch { |
| 54 | // Ignore quota / serialization errors. |
| 55 | } |
| 56 | }; |
| 57 | |
| 58 | // Workspace-scoped in SaaS so the last project of workspace A is never read |
| 59 | // after switching to workspace B (where it doesn't exist). Reads the app store |
no outgoing calls
no test coverage detected