(event: StorageEvent)
| 809 | |
| 810 | // Listen for storage events from other tabs |
| 811 | const handleStorageEvent = (event: StorageEvent) => { |
| 812 | // Only respond to changes to our specific key and from our storage |
| 813 | if (event.key !== storageKey || event.storageArea !== storage) { |
| 814 | return |
| 815 | } |
| 816 | |
| 817 | processStorageChanges() |
| 818 | } |
| 819 | |
| 820 | // Add storage event listener for cross-tab sync |
| 821 | storageEventApi.addEventListener(`storage`, handleStorageEvent) |
nothing calls this directly
no test coverage detected