diff --git a/src/main/index.ts b/src/main/index.ts index 821c1d1..bd44a1a 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1,8 +1,11 @@ +import os from 'os' import { join } from 'path' import { app, BrowserWindow, ipcMain } from 'electron' import Store from 'electron-store' -app.disableHardwareAcceleration() +// https://stackoverflow.com/questions/42524606/how-to-get-windows-version-using-node-js +const isWin7 = os.release().startsWith('6.1') +if (isWin7) app.disableHardwareAcceleration() if (!app.requestSingleInstanceLock()) { app.quit()