Add hidden dev debug console (v0.5.0)

This commit is contained in:
MeatSlicer Developer committed 2026-07-31 08:49:39 +10:00
1 parent b8b5c360f2
commit 3f76998fab
22 files changed
+1161 -57

No files matched your search

+5
View File
@@ -39,6 +39,8 @@ function installProtocol() {
});
}
const DEV = process.argv.includes('--dev');
function createWindow() {
const win = new BrowserWindow({
fullscreen: true, // borderless windowed fullscreen on Windows
@@ -50,6 +52,9 @@ function createWindow() {
preload: path.join(__dirname, 'preload.js'),
contextIsolation: true,
nodeIntegration: false,
// forward --dev into the preload's process.argv (custom app flags aren't
// guaranteed to appear there otherwise); enables the hidden debug console
additionalArguments: DEV ? ['--ms-dev'] : [],
},
});
Menu.setApplicationMenu(null);