MCPcopy
hub / github.com/darkreader/darkreader / sendResponse

Method sendResponse

src/background/tab-manager.ts:215–217  ·  view source on GitHub ↗
(response: Partial<MessageBGtoCS>)

Source from the content-addressed store, hash-verified

213 const id = message.id;
214 // We do not need to use scriptId here since every request has a unique id already
215 const sendResponse = (response: Partial<MessageBGtoCS>) => {
216 TabManager.sendDocumentMessage(sender.tab!.id!, sender.documentId!, {type: MessageTypeBGtoCS.FETCH_RESPONSE, id, ...response}, sender.frameId!);
217 };
218
219 if (__THUNDERBIRD__) {
220 // In thunderbird some CSS is loaded on a chrome:// URL.

Callers

nothing calls this directly

Calls 1

sendDocumentMessageMethod · 0.80

Tested by

no test coverage detected