From 114a47142bdf62e17517461a4aaa41fcdd414011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Thu, 9 Dec 2021 09:18:32 +0800 Subject: [PATCH] chore: disableHardwareAcceleration on windows7 --- src/main/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/index.ts b/src/main/index.ts index bd44a1a..b9b27b0 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -3,7 +3,6 @@ import { join } from 'path' import { app, BrowserWindow, ipcMain } from 'electron' import Store from 'electron-store' -// https://stackoverflow.com/questions/42524606/how-to-get-windows-version-using-node-js const isWin7 = os.release().startsWith('6.1') if (isWin7) app.disableHardwareAcceleration()