diff --git a/electron/main/index.ts b/electron/main/index.ts index cb29401..a820883 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -29,7 +29,7 @@ process.env.VITE_PUBLIC = VITE_DEV_SERVER_URL : RENDERER_DIST // Disable GPU Acceleration for Windows 7 -if (os.release().startsWith('6.1')) app.disableHardwareAcceleration() +if (process.platform === 'win32' && os.release().startsWith('6.1')) app.disableHardwareAcceleration() // Set application name for Windows 10+ notifications if (process.platform === 'win32') app.setAppUserModelId(app.getName())