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

Function postWindowMessage

packages/shared/src/lib/func.ts:40–44  ·  view source on GitHub ↗
(
  eventKey: string,
  params: EmptyObjectLiteral,
  attributes = '*',
)

Source from the content-addressed store, hash-verified

38Object.freeze(disabledRefetch);
39
40export const postWindowMessage = (
41 eventKey: string,
42 params: EmptyObjectLiteral,
43 attributes = '*',
44): void => window.opener?.postMessage?.({ ...params, eventKey }, attributes);
45
46export const checkIsExtension = (): boolean => !!process.env.TARGET_BROWSER;
47export const isExtension = !!process.env.TARGET_BROWSER;

Callers 3

ErrorPageFunction · 0.90
CallbackPageFunction · 0.90
checkPermissionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected