Merge pull request #9778 from lepinay/patch-1

Extra properties must be less than 63 characters
This commit is contained in:
Kevin Sawicki 2017-06-26 08:36:43 -07:00 committed by GitHub
commit ef38122388

View file

@ -45,7 +45,7 @@ The `crashReporter` module has the following methods:
* `ignoreSystemCrashHandler` Boolean (optional) - Default is `false`. * `ignoreSystemCrashHandler` Boolean (optional) - Default is `false`.
* `extra` Object (optional) - An object you can define that will be sent along with the * `extra` Object (optional) - An object you can define that will be sent along with the
report. Only string properties are sent correctly. Nested objects are not report. Only string properties are sent correctly. Nested objects are not
supported. supported and the property names and values must be less than 64 characters long.
You are required to call this method before using any other `crashReporter` APIs You are required to call this method before using any other `crashReporter` APIs
and in each process (main/renderer) from which you want to collect crash reports. and in each process (main/renderer) from which you want to collect crash reports.
@ -117,9 +117,10 @@ called before `start` is called.
### `crashReporter.setExtraParameter(key, value)` _macOS_ ### `crashReporter.setExtraParameter(key, value)` _macOS_
* `key` String - Parameter key. * `key` String - Parameter key, must be less than 64 characters long.
* `value` String - Parameter value. Specifying `null` or `undefined` will * `value` String - Parameter value, must be less than 64 characters long.
remove the key from the extra parameters. Specifying `null` or `undefined` will remove the key from the extra
parameters.
Set an extra parameter to set be sent with the crash report. The values Set an extra parameter to set be sent with the crash report. The values
specified here will be sent in addition to any values set via the `extra` option specified here will be sent in addition to any values set via the `extra` option