MCPcopy Index your code
hub / github.com/MALSync/MALSync / emitterAction

Function emitterAction

src/background/messageHandler.ts:154–163  ·  view source on GitHub ↗
(message: emitter, sender, sendResponse)

Source from the content-addressed store, hash-verified

152}
153
154function emitterAction(message: emitter, sender, sendResponse) {
155 chrome.runtime.sendMessage(message);
156
157 activeEmitterTabs.forEach(tabId => {
158 chrome.tabs.sendMessage(tabId, message).catch(() => {
159 activeEmitterTabs.delete(tabId);
160 });
161 });
162 return undefined;
163}
164
165function registerEmitterTab(tabId: number) {
166 activeEmitterTabs.add(tabId);

Callers 1

messageHandlerFunction · 0.85

Calls 2

sendMessageMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected