Skip to content

ElectronApp.removeAsDefaultProtocolClient method

ElectronApp › removeAsDefaultProtocolClient

Unofficial

Removes the current executable as the default handler for a protocol. macOS and Windows only.

Signature:

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

Parameters:

Parameter Type Description
protocol string The protocol name, without the ://.
path? string | undefined The executable path to compare against.
args? string[] | undefined The arguments to compare against.

Returns: booleanWhether the call succeeded.