()
| 264 | } |
| 265 | |
| 266 | export 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 | } |
nothing calls this directly
no test coverage detected