feat: update electron main and React components

This commit is contained in:
2026-03-19 23:06:26 +08:00
parent 4a8220652e
commit 6858acfafa
6 changed files with 82 additions and 15 deletions

View File

@@ -30,6 +30,9 @@ if (argsGlobal.headless) {
}
app.commandLine.appendSwitch('disable-gpu-shader-disk-cache');
app.commandLine.appendSwitch('enable-webgl');
app.commandLine.appendSwitch('ignore-gpu-blacklist');
app.commandLine.appendSwitch('enable-accelerated-2d-canvas');
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);