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

Function getGlobalSharedProps

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

Source from the content-addressed store, hash-verified

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

Callers 1

generateEventFunction · 0.85

Calls 1

getCurrentLifecycleStateFunction · 0.90

Tested by

no test coverage detected