MCPcopy Create free account
hub / github.com/garrytan/gstack / sendToContentScript

Function sendToContentScript

extension/background.js:269–276  ·  view source on GitHub ↗
(tabId, message)

Source from the content-addressed store, hash-verified

267}
268
269async function sendToContentScript(tabId, message) {
270 try {
271 const response = await chrome.tabs.sendMessage(tabId, message);
272 return response || { ok: true };
273 } catch {
274 return { error: 'Content script not available' };
275 }
276}
277
278// ─── Message Handling ──────────────────────────────────────────
279

Callers 1

background.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected