Skip to content

Commit 2c81627

Browse files
grauxmusicclaude
andcommitted
fix: enable DevTools (Ctrl+Shift+I) + kBaseURL = water.95ent.ai
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 984e153 commit 2c81627

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

CompanionWin/main.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function createWindow() {
4040
preload: path.join(__dirname, 'preload.js'),
4141
contextIsolation: true,
4242
nodeIntegration: false,
43-
devTools: false,
43+
devTools: true,
4444
}
4545
})
4646

@@ -49,6 +49,12 @@ function createWindow() {
4949
extraHeaders: 'X-Water-Companion: windows\n'
5050
})
5151

52+
win.webContents.on('before-input-event', (_event, input) => {
53+
if (input.type === 'keyDown' && input.key === 'I' && input.control && input.shift) {
54+
win?.webContents.toggleDevTools()
55+
}
56+
})
57+
5258
win.webContents.on('did-fail-load', () => {
5359
// Retry after 3s on network failure
5460
setTimeout(() => win?.loadURL(`${kBaseURL}/library`, { userAgent: kUA }), 3000)

0 commit comments

Comments
 (0)