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

Function shutdown

packages/shell-firefox/src/background.js:77–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75 one.postMessage(message)
76 }
77 function shutdown() {
78 if (process.env.NODE_ENV !== 'production') {
79 // eslint-disable-next-line no-console
80 console.log(`tab ${id} disconnected.`)
81 }
82 one.onMessage.removeListener(lOne)
83 two.onMessage.removeListener(lTwo)
84 one.disconnect()
85 two.disconnect()
86 ports[id] = null
87 }
88 one.onDisconnect.addListener(shutdown)
89 two.onDisconnect.addListener(shutdown)
90 if (process.env.NODE_ENV !== 'production') {

Callers

nothing calls this directly

Calls 1

logMethod · 0.80

Tested by

no test coverage detected