MCPcopy Create free account
hub / github.com/github/awesome-copilot / closeFlyouts

Function closeFlyouts

website/src/scripts/listing-flyouts.ts:9–15  ·  view source on GitHub ↗
(except?: HTMLDetailsElement)

Source from the content-addressed store, hash-verified

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

Callers 1

initListingFlyoutsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected