diff --git a/src/main/index.ts b/src/main/index.ts index 36cc59a..656b7c0 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1,6 +1,11 @@ +import os from 'os' import path from 'path' import { app, BrowserWindow } from 'electron' +// 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() process.exit(0)