MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / onMessage

Function onMessage

packages/react/src/api/oauth-popup.ts:107–110  ·  view source on GitHub ↗
(event: MessageEvent)

Source from the content-addressed store, hash-verified

105 typeof BroadcastChannel !== "undefined" ? new BroadcastChannel(input.channelName) : null;
106
107 const onMessage = (event: MessageEvent) => {
108 if (event.origin !== window.location.origin) return;
109 handleResult(event.data);
110 };
111
112 // localStorage `storage` events are the reliable same-origin completion path:
113 // they fire on the opener when the (same-origin) callback page writes, survive

Callers

nothing calls this directly

Calls 1

handleResultFunction · 0.70

Tested by

no test coverage detected