MCPcopy
hub / github.com/darkreader/darkreader / reply

Method reply

src/background/tab-manager.ts:89–97  ·  view source on GitHub ↗
(tabURL: string, url: string, isTopFrame: boolean, topFrameHasDarkTheme?: boolean)

Source from the content-addressed store, hash-verified

87 TabManager.onColorSchemeMessage(message, sender);
88
89 const reply = (tabURL: string, url: string, isTopFrame: boolean, topFrameHasDarkTheme?: boolean) => {
90 getConnectionMessage(tabURL, url, isTopFrame, topFrameHasDarkTheme).then((response) => {
91 if (!response) {
92 return;
93 }
94 response.scriptId = message.scriptId!;
95 TabManager.sendDocumentMessage(sender.tab!.id!, sender.documentId!, response, sender.frameId!);
96 });
97 };
98
99 if (isPanel(sender)) {
100 // NOTE: Vivaldi and Opera can show a page in a side panel,

Callers

nothing calls this directly

Calls 1

sendDocumentMessageMethod · 0.80

Tested by

no test coverage detected