git status
This commit is contained in:
1 parent
d7f47bb65d
commit
b59c3c87fe
1 file changed
+4
-1
+4
-1
@@ -1,8 +1,11 @@
|
|||||||
|
import os from 'os'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import { app, BrowserWindow, ipcMain } from 'electron'
|
import { app, BrowserWindow, ipcMain } from 'electron'
|
||||||
import Store from 'electron-store'
|
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()) {
|
if (!app.requestSingleInstanceLock()) {
|
||||||
app.quit()
|
app.quit()
|
||||||
|
|||||||
Reference in new issue
Block a user