mirror of
https://github.com/heyman/heynote.git
synced 2025-06-20 09:37:50 +02:00
Allow running both an instance of a Heynote production build, and a dev instance
This commit is contained in:
parent
3d20ac30be
commit
c2036e7e6b
@ -24,11 +24,12 @@ if (release().startsWith('6.1')) app.disableHardwareAcceleration()
|
|||||||
// Set application name for Windows 10+ notifications
|
// Set application name for Windows 10+ notifications
|
||||||
if (process.platform === 'win32') app.setAppUserModelId(app.getName())
|
if (process.platform === 'win32') app.setAppUserModelId(app.getName())
|
||||||
|
|
||||||
if (!app.requestSingleInstanceLock()) {
|
if (!process.env.VITE_DEV_SERVER_URL && !app.requestSingleInstanceLock()) {
|
||||||
app.quit()
|
app.quit()
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Remove electron security warnings
|
// Remove electron security warnings
|
||||||
// This warning only shows in development mode
|
// This warning only shows in development mode
|
||||||
// Read more on https://www.electronjs.org/docs/latest/tutorial/security
|
// Read more on https://www.electronjs.org/docs/latest/tutorial/security
|
||||||
|
Loading…
x
Reference in New Issue
Block a user