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

Function getGlobalSharedProps

packages/shared/src/hooks/log/useLogContextData.ts:24–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 | Origin.Bookmarks;
23
24const getGlobalSharedProps = (): Partial<LogEvent> => ({
25 screen_height: window.screen?.height,
26 screen_width: window.screen?.width,
27 page_referrer: document.referrer,
28 window_height: window.innerHeight,
29 window_width: window.innerWidth,
30 page_state: getCurrentLifecycleState(),
31});
32
33const generateEvent = (
34 event: LogEvent,

Callers 1

generateEventFunction · 0.85

Calls 1

getCurrentLifecycleStateFunction · 0.90

Tested by

no test coverage detected