MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / load

Function load

projects/electron/src/executor.ts:266–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264}
265
266export const load = () => {
267 app.on("ready", () => {
268 if (process.platform === "darwin") {
269 app.dock?.show()
270 }
271 startExecutor()
272 // for migrating the frontend app to have a frame
273 ipcMain.handle("is-windowed-with-frame", async () => {
274 return true
275 })
276 })
277
278 // override as it is deabled on prod.
279 ipcMain.handle("force-enable-dev-tools", () => {
280 forceEnableDevTools()
281 })
282
283 ipcMain.handle("app:set-terminal-keyboard-capture", (event, captured: unknown) => {
284 const win = executorWindow
285 if (!win || win.isDestroyed() || event.sender !== win.webContents) return
286
287 terminalKeyboardCapture = captured === true
288 win.webContents.setIgnoreMenuShortcuts(terminalKeyboardCapture && process.platform !== "darwin")
289 })
290}

Callers

nothing calls this directly

Calls 3

startExecutorFunction · 0.85
forceEnableDevToolsFunction · 0.85
onMethod · 0.45

Tested by

no test coverage detected