Merge pull request #5440 from electron/bengotow/remove-default-protocol

Implement RemoveAsDefaultProtocolClient on OS X
This commit is contained in:
Cheng Zhao 2016-05-09 08:36:21 +09:00
commit 6b79f53416
2 changed files with 26 additions and 5 deletions

View file

@ -393,16 +393,13 @@ Please refer to [Apple's documentation][CFBundleURLTypes] for details.
The API uses the Windows Registry and LSSetDefaultHandlerForURLScheme internally.
### `app.removeAsDefaultProtocolClient(protocol)` _Windows_
### `app.removeAsDefaultProtocolClient(protocol)` _OS X_ _Windows_
* `protocol` String - The name of your protocol, without `://`.
This method checks if the current executable as the default handler for a protocol
(aka URI scheme). If so, it will remove the app as the default handler.
**Note:** On OS X, removing the app will automatically remove the app as the
default protocol handler.
### `app.isDefaultProtocolClient(protocol)` _OS X_ _Windows_
* `protocol` String - The name of your protocol, without `://`.