(except?: HTMLDetailsElement)
| 7 | const FLYOUT_SELECTOR = '.listing-controls'; |
| 8 | |
| 9 | function closeFlyouts(except?: HTMLDetailsElement): void { |
| 10 | document.querySelectorAll<HTMLDetailsElement>(FLYOUT_SELECTOR).forEach((flyout) => { |
| 11 | if (flyout !== except) { |
| 12 | flyout.open = false; |
| 13 | } |
| 14 | }); |
| 15 | } |
| 16 | |
| 17 | export function initListingFlyouts(): void { |
| 18 | if (window.__awesomeCopilotListingFlyoutsInitialized) return; |
no outgoing calls
no test coverage detected