Skip to content

Commit 408790d

Browse files
committed
Refactor App components, fix math logic, and fix build typescript errors
1 parent 9aee209 commit 408790d

22 files changed

Lines changed: 1815 additions & 1150 deletions

electron/main.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -596,6 +596,9 @@ ipcMain.on('open-settings', () => {
596596
preload: path.join(__dirname, 'preload.js'),
597597
nodeIntegration: false,
598598
contextIsolation: true,
599+
// webSecurity is disabled for the settings window to allow the renderer to
600+
// make OpenAI/OpenRouter API calls directly with dangerouslyAllowBrowser: true,
601+
// without needing complex IPC proxying for a desktop app running locally.
599602
webSecurity: false,
600603
},
601604
})

0 commit comments

Comments
 (0)