Merge pull request #5423 from electron/fix-spacing-app-doc
Fix spacing on lines and url
This commit is contained in:
commit
9a56974c83
1 changed files with 4 additions and 5 deletions
|
@ -386,12 +386,12 @@ default protocol handler.
|
||||||
|
|
||||||
### `app.isDefaultProtocolClient(protocol)` _OS X_ _Windows_
|
### `app.isDefaultProtocolClient(protocol)` _OS X_ _Windows_
|
||||||
|
|
||||||
* `protocol` String - The name of your protocol, without `://`.
|
* `protocol` String - The name of your protocol, without `://`.
|
||||||
|
|
||||||
This method checks if the current executable is the default handler for a protocol
|
This method checks if the current executable is the default handler for a protocol
|
||||||
(aka URI scheme). If so, it will return true. Otherwise, it will return false.
|
(aka URI scheme). If so, it will return true. Otherwise, it will return false.
|
||||||
|
|
||||||
**Note:** On OS X, you can use this method to check if the app has been registered as the default protocol handler for a protocol. You can also verify this by checking `~/Library/Preferences/com.apple.LaunchServices.plist` on the OS X machine.
|
**Note:** On OS X, you can use this method to check if the app has been registered as the default protocol handler for a protocol. You can also verify this by checking `~/Library/Preferences/com.apple.LaunchServices.plist` on the OS X machine.
|
||||||
Please refer to [Apple's documentation][LSCopyDefaultHandlerForURLScheme] for details.
|
Please refer to [Apple's documentation][LSCopyDefaultHandlerForURLScheme] for details.
|
||||||
|
|
||||||
The API uses the Windows Registry and LSCopyDefaultHandlerForURLScheme internally.
|
The API uses the Windows Registry and LSCopyDefaultHandlerForURLScheme internally.
|
||||||
|
@ -568,5 +568,4 @@ Sets the `image` associated with this dock icon.
|
||||||
[tasks]:http://msdn.microsoft.com/en-us/library/windows/desktop/dd378460(v=vs.85).aspx#tasks
|
[tasks]:http://msdn.microsoft.com/en-us/library/windows/desktop/dd378460(v=vs.85).aspx#tasks
|
||||||
[app-user-model-id]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx
|
[app-user-model-id]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378459(v=vs.85).aspx
|
||||||
[CFBundleURLTypes]: https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-102207-TPXREF115
|
[CFBundleURLTypes]: https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-102207-TPXREF115
|
||||||
[LSCopyDefaultHandlerForURLScheme]:
|
[LSCopyDefaultHandlerForURLScheme]: https://developer.apple.com/library/mac/documentation/Carbon/Reference/LaunchServicesReference/#//apple_ref/c/func/LSCopyDefaultHandlerForURLScheme
|
||||||
https://developer.apple.com/library/mac/documentation/Carbon/Reference/LaunchServicesReference/#//apple_ref/c/func/LSCopyDefaultHandlerForURLScheme
|
|
||||||
|
|
Loading…
Reference in a new issue