Merge pull request #8046 from electron/bengotow/url-schemes-docs-patch
Update open-url docs to mention NSPrincipalClass
This commit is contained in:
commit
fb5bca8bc5
1 changed files with 3 additions and 2 deletions
|
@ -108,8 +108,9 @@ Returns:
|
||||||
* `event` Event
|
* `event` Event
|
||||||
* `url` String
|
* `url` String
|
||||||
|
|
||||||
Emitted when the user wants to open a URL with the application. The URL scheme
|
Emitted when the user wants to open a URL with the application. Your application's
|
||||||
must be registered to be opened by your application.
|
`Info.plist` file must define the url scheme within the `CFBundleURLTypes` key, and
|
||||||
|
set `NSPrincipalClass` to `AtomApplication`.
|
||||||
|
|
||||||
You should call `event.preventDefault()` if you want to handle this event.
|
You should call `event.preventDefault()` if you want to handle this event.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue