Add API: RemoveAsDefaultProtocolHandler

This commit is contained in:
Felix Rieseberg 2016-03-24 10:55:09 -07:00
parent d2567b0381
commit 1231360b2f
6 changed files with 70 additions and 1 deletions

View file

@ -367,6 +367,16 @@ Please refer to [Apple's documentation][CFBundleURLTypes] for details.
The API uses the Windows Registry and LSSetDefaultHandlerForURLScheme internally.
### `app.removeAsDefaultProtocolClient(protocol)` _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.setUserTasks(tasks)` _Windows_
* `tasks` Array - Array of `Task` objects