Skip to content

ElectronApp.isDefaultProtocolClient method

ElectronApp › isDefaultProtocolClient

Unofficial

Returns whether the current executable is the default handler for a protocol.

Signature:

isDefaultProtocolClient(protocol: string, path?: string | undefined, args?: string[] | undefined): boolean

Parameters:

ParameterTypeDescription
protocolstringThe protocol name, without the ://.
path?string | undefinedThe executable path to compare against.
args?string[] | undefinedThe arguments to compare against.

Returns: booleanWhether the current executable is the default handler.