(key: string, value: unknown)
| 110 | }; |
| 111 | |
| 112 | const safeWrite = (key: string, value: unknown) => { |
| 113 | if (typeof window === "undefined") return; |
| 114 | try { |
| 115 | window.localStorage.setItem(key, JSON.stringify(value)); |
| 116 | } catch { |
| 117 | // Ignore quota / serialization errors. |
| 118 | } |
| 119 | }; |
| 120 | |
| 121 | const isPersistentTabArray = (v: unknown): v is PersistentTab[] => |
| 122 | Array.isArray(v); |
no outgoing calls
no test coverage detected