mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
docs: don't wait for ready event to register open-url listener (#35019)
* Update app.md Add warning about late registration of the open-url event. * Update app.md
This commit is contained in:
@@ -130,6 +130,11 @@ set `NSPrincipalClass` to `AtomApplication`.
|
||||
|
||||
You should call `event.preventDefault()` if you want to handle this event.
|
||||
|
||||
As with the `open-file` event, be sure to register a listener for the `open-url`
|
||||
event early in your application startup to detect if the the application being
|
||||
is being opened to handle a URL. If you register the listener in response to a
|
||||
`ready` event, you'll miss URLs that trigger the launch of your application.
|
||||
|
||||
### Event: 'activate' _macOS_
|
||||
|
||||
Returns:
|
||||
|
||||
Reference in New Issue
Block a user