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

Function sendAppCommand

desktop/main.mjs:68–76  ·  view source on GitHub ↗
(command)

Source from the content-addressed store, hash-verified

66}
67
68function sendAppCommand(command) {
69 if (!mainWindow || mainWindow.isDestroyed()) {
70 return
71 }
72 mainWindow.webContents.send('claw:desktop:command', {
73 type: 'menu-command',
74 command,
75 })
76}
77
78function buildApplicationMenu() {
79 const template = [

Callers 1

buildApplicationMenuFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected