()
| 19 | function subscribe(notify: () => void): () => void { |
| 20 | if (!subscribers.size) { |
| 21 | const broadcast = () => subscribers.forEach(listener => listener()); |
| 22 | const query = typeof window.matchMedia === 'function' ? window.matchMedia('(prefers-reduced-motion: reduce)') : undefined; |
| 23 | window.addEventListener(CHANGE, broadcast); window.addEventListener('storage', broadcast); |
| 24 | document.addEventListener('visibilitychange', broadcast); query?.addEventListener('change', broadcast); |
nothing calls this directly
no outgoing calls
no test coverage detected