💄 Show native window controls on macOS crash dialog (#16357)

This commit is contained in:
Jeffrey Chen 2025-11-17 09:20:27 +08:00 committed by GitHub
parent cc59bd1087
commit d15f957239
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 3 deletions

View file

@ -196,7 +196,9 @@ const showErrorWindow = (title, content) => {
const errWindow = new BrowserWindow({
width: Math.floor(screen.getPrimaryDisplay().size.width * 0.5),
height: Math.floor(screen.getPrimaryDisplay().workAreaSize.height * 0.8),
frame: false,
frame: "darwin" === process.platform,
titleBarStyle: "hidden",
fullscreenable: false,
icon: path.join(appDir, "stage", "icon-large.png"),
webPreferences: {
nodeIntegration: true, webviewTag: true, webSecurity: false, contextIsolation: false,