MCPcopy
hub / github.com/vuejs/devtools-v6 / lTwo

Function lTwo

packages/shell-firefox/src/background.js:66–76  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

64 }
65 two.onMessage.addListener(lTwo)
66 function lTwo(message) {
67 if (message.event === 'log') {
68 // eslint-disable-next-line no-console
69 return console.log(`tab ${id}`, message.payload)
70 }
71 if (process.env.NODE_ENV !== 'production') {
72 // eslint-disable-next-line no-console
73 console.log('%cbackend -> devtools', 'color:#888;', message)
74 }
75 one.postMessage(message)
76 }
77 function shutdown() {
78 if (process.env.NODE_ENV !== 'production') {
79 // eslint-disable-next-line no-console

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected