@@ -329,7 +329,7 @@ and `will-quit` events will not be emitted.
329329### ` app.relaunch([options]) `
330330
331331* ` options ` Object (optional)
332- * ` args ` Array (optional)
332+ * ` args ` String [ ] (optional)
333333 * ` execPath ` String (optional)
334334
335335Relaunches the app when current instance exits.
@@ -470,7 +470,9 @@ Clears the recent documents list.
470470 app to handle ` electron:// ` links, call this method with ` electron ` as the
471471 parameter.
472472* ` path ` String (optional) _ Windows_ - Defaults to ` process.execPath `
473- * ` args ` Array (optional) _ Windows_ - Defaults to an empty array
473+ * ` args ` String[ ] (optional) _ Windows_ - Defaults to an empty array
474+
475+ Returns ` Boolean ` - Whether the call succeeded.
474476
475477This method sets the current executable as the default handler for a protocol
476478(aka URI scheme). It allows you to integrate your app deeper into the operating
@@ -481,8 +483,6 @@ your application as a parameter.
481483On Windows you can provide optional parameters path, the path to your executable,
482484and args, an array of arguments to be passed to your executable when it launches.
483485
484- Returns ` true ` when the call succeeded, otherwise returns ` false ` .
485-
486486** Note:** On macOS, you can only register protocols that have been added to
487487your app's ` info.plist ` , which can not be modified at runtime. You can however
488488change the file with a simple text editor or script during build time.
@@ -494,18 +494,19 @@ The API uses the Windows Registry and LSSetDefaultHandlerForURLScheme internally
494494
495495* ` protocol ` String - The name of your protocol, without ` :// ` .
496496* ` path ` String (optional) _ Windows_ - Defaults to ` process.execPath `
497- * ` args ` Array (optional) _ Windows_ - Defaults to an empty array
497+ * ` args ` String[ ] (optional) _ Windows_ - Defaults to an empty array
498+
499+ Returns ` Boolean ` - Whether the call succeeded.
498500
499501This method checks if the current executable as the default handler for a
500502protocol (aka URI scheme). If so, it will remove the app as the default handler.
501503
502- Returns ` true ` when the call succeeded, otherwise returns ` false ` .
503504
504505### ` app.isDefaultProtocolClient(protocol[, path, args]) ` _ macOS_ _ Windows_
505506
506507* ` protocol ` String - The name of your protocol, without ` :// ` .
507508* ` path ` String (optional) _ Windows_ - Defaults to ` process.execPath `
508- * ` args ` Array (optional) _ Windows_ - Defaults to an empty array
509+ * ` args ` String [ ] (optional) _ Windows_ - Defaults to an empty array
509510
510511Returns ` Boolean `
511512
@@ -543,7 +544,7 @@ Adds `tasks` to the [Tasks][tasks] category of the JumpList on Windows.
543544 consists of two or more icons, set this value to identify the icon. If an
544545 icon file consists of one icon, this value is 0.
545546
546- Returns ` true ` when the call succeeded, otherwise returns ` false ` .
547+ Returns ` Boolean ` - Whether the call succeeded.
547548
548549** Note:** If you'd like to customize the Jump List even more use
549550` app.setJumpList(categories) ` instead.
@@ -790,8 +791,10 @@ This method can only be called before app is ready.
790791
791792* ` count ` Integer
792793
794+ Returns ` Boolean ` - Whether the call succeeded.
795+
793796Sets the counter badge for current app. Setting the count to ` 0 ` will hide the
794- badge. Returns ` true ` when the call succeeded, otherwise returns ` false ` .
797+ badge.
795798
796799On macOS it shows on the dock icon. On Linux it only works for Unity launcher,
797800
0 commit comments