mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-28 07:35:40 +00:00
single instance
This commit is contained in:
+4
-1
@@ -16,7 +16,10 @@ import { logger } from './main/logger'
|
||||
import os from 'os'
|
||||
const isDevelopment = process.env.NODE_ENV !== 'production'
|
||||
|
||||
// Scheme must be registered before the app is ready
|
||||
if (!app.requestSingleInstanceLock()) {
|
||||
app.exit()
|
||||
}
|
||||
|
||||
protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true, standard: true } }])
|
||||
app.allowRendererProcessReuse = true
|
||||
if (!config.get('hardwareAcceleration')) {
|
||||
|
||||
Reference in New Issue
Block a user