Skip to content

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): boolean

Parameters:

Parameter Type Description
additionalData? Record<string, unknown> | undefined A JSON object to send to the first instance.

Returns: booleanWhether this process is the primary instance.