MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / postToContentScript

Function postToContentScript

inject.js:24–29  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

22
23 // Send message to content script
24 function postToContentScript(data) {
25 window.postMessage({
26 source: 'stream-panel-inject',
27 payload: data
28 }, '*');
29 }
30
31 // Parse complete SSE event blocks. The caller is responsible for buffering
32 // incomplete trailing data between chunks.

Callers 6

captureEventFunction · 0.85
inject.jsFile · 0.85
emitMessageFunction · 0.85
reportErrorFunction · 0.85
closeConnectionFunction · 0.85
emitXHRMessageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected