MCPcopy Create free account
hub / github.com/dailydotdev/apps / getDefaultParentSelector

Function getDefaultParentSelector

packages/shared/src/hooks/usePopupSelector.ts:6–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5const POPUP_SELECTOR_KEY = [generateStorageKey(StorageTopic.Popup, 'selector')];
6const getDefaultParentSelector = (): HTMLElement => {
7 if (typeof document === 'undefined') {
8 throw new Error('Popup parent selector is unavailable on the server');
9 }
10
11 return document.body;
12};
13
14type AppendFn = () => HTMLElement;
15

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected