Merge pull request #8046 from electron/bengotow/url-schemes-docs-patch

Update open-url docs to mention NSPrincipalClass
This commit is contained in:
Kevin Sawicki 2016-11-22 07:50:13 -08:00 committed by GitHub
commit fb5bca8bc5

View file

@ -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.