зеркало из https://github.com/electron/electron.git
docs: fix typo in open-url API docs (#39513)
* Fix typo in open-url API docs * Update app.md
This commit is contained in:
Родитель
0c45d160d6
Коммит
f7a7085019
|
@ -128,9 +128,8 @@ Emitted when the user wants to open a URL with the application. Your application
|
||||||
set `NSPrincipalClass` to `AtomApplication`.
|
set `NSPrincipalClass` to `AtomApplication`.
|
||||||
|
|
||||||
As with the `open-file` event, be sure to register a listener for the `open-url`
|
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
|
event early in your application startup to detect if the application is being opened to handle a URL.
|
||||||
is being opened to handle a URL. If you register the listener in response to a
|
If you register the listener in response to a `ready` event, you'll miss URLs that trigger the launch of your application.
|
||||||
`ready` event, you'll miss URLs that trigger the launch of your application.
|
|
||||||
|
|
||||||
### Event: 'activate' _macOS_
|
### Event: 'activate' _macOS_
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче