| 1 | export interface Storage { |
| 2 | user?: { |
| 3 | apiKey?: string; |
| 4 | name?: string; |
| 5 | userPortalUrl?: string; |
| 6 | }; |
| 7 | settings: Record<string, unknown>; |
| 8 | lastError?: { |
| 9 | message?: string; |
| 10 | }; |
| 11 | portalUrl?: string; |
| 12 | // regexes of domains to watch |
| 13 | allowlist?: { |
| 14 | // Defaults at the time of saving the setting. |
| 15 | defaults: string[]; |
| 16 | current: string[]; |
| 17 | }; |
| 18 | } |
| 19 | |
| 20 | // In case the defaults change over time, reconcile the saved setting with the |
| 21 | // new default allowlist. |
nothing calls this directly
no outgoing calls
no test coverage detected