ElectronApp.on('open-url') method
ElectronApp › on(‘open-url’)
Unofficial
Registers a listener for theopen-url event.Emitted when the user wants to open a URL with the application. macOS only.
Signature:
on($event: "open-url", listener: ($event: ElectronEvent, url: string) => void): thisParameters:
| Parameter | Type | Description |
|---|---|---|
| $event | "open-url" | |
| listener | ($event: ElectronEvent, url: string) => void | The event handler. |
Returns: this — This ElectronApp instance.