MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / handler

Function handler

desktop/preload.cjs:11–11  ·  view source on GitHub ↗
(_event, payload)

Source from the content-addressed store, hash-verified

9 restartLauncher: () => ipcRenderer.invoke('claw:desktop:restart-launcher'),
10 onCommand: callback => {
11 const handler = (_event, payload) => callback(payload)
12 ipcRenderer.on('claw:desktop:command', handler)
13 return () => ipcRenderer.removeListener('claw:desktop:command', handler)
14 },

Callers 1

spawnMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected