(key: string, value: unknown)
| 254 | }; |
| 255 | |
| 256 | const safeWriteJSON = (key: string, value: unknown) => { |
| 257 | if (typeof window === "undefined") return; |
| 258 | try { |
| 259 | window.localStorage.setItem(key, JSON.stringify(value)); |
| 260 | } catch { |
| 261 | // Ignore quota / serialization errors. |
| 262 | } |
| 263 | }; |
| 264 | |
| 265 | const currentScope = (): { |
| 266 | wsScope: string; |
no outgoing calls
no test coverage detected