MCPcopy Create free account
hub / github.com/Tampermonkey/tampermonkey / msg

Function msg

src/emulation.js:245–254  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

243 };
244
245 var msg = function(m) {
246 if (m.onMessage) {
247 if (port) port.notifyListeners(port.oMlisteners, m.msg);
248 } else if (m.onDisconnect) {
249 if (port) {
250 port.notifyListeners(port.oDlisteners);
251 port = null;
252 }
253 }
254 };
255
256 var id = chromeEmu.getResponseId(msg);
257 tmCE.sendExtensionConnect(chromeEmu.key, JSON.stringify(obj), id);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected