(next: RecentPage[])
| 61 | }; |
| 62 | |
| 63 | const persist = (next: RecentPage[]): void => { |
| 64 | cache = next; |
| 65 | try { |
| 66 | window.localStorage.setItem(STORAGE_KEY, JSON.stringify(next)); |
| 67 | } catch { |
| 68 | // ignore storage quota / privacy-mode failures |
| 69 | } |
| 70 | listeners.forEach((listener) => listener()); |
| 71 | }; |
| 72 | |
| 73 | export const updateRecentPageMeta = ( |
| 74 | path: string, |
no outgoing calls
no test coverage detected