ElectronApp.requestSingleInstanceLock method
ElectronApp › requestSingleInstanceLock
Unofficial
Requests the single instance lock. Returns whether this instance obtained the lock and should continue loading.Signature:
requestSingleInstanceLock(additionalData?: Record<string, unknown> | undefined): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| additionalData? | Record<string, unknown> | undefined | A JSON object to send to the first instance. |
Returns: boolean — Whether this process is the primary instance.