diff --git a/app/electron/main.js b/app/electron/main.js index 640bbf3ad..49daf94c7 100644 --- a/app/electron/main.js +++ b/app/electron/main.js @@ -218,6 +218,7 @@ const showErrorWindow = (titleZh, titleEn, content, emoji = "⚠️") => { titleBarStyle: "hidden", fullscreenable: false, icon: path.join(appDir, "stage", "icon-large.png"), + transparent: "darwin" === process.platform, // 避免深色模式关闭窗口时闪现白色背景 webPreferences: { nodeIntegration: true, webviewTag: true, webSecurity: false, contextIsolation: false, },