feat: crashReporter: expose rateLimit and compress options (#23062)
This commit is contained in:
parent
fdf7e288bb
commit
aeaccd00a2
10 changed files with 58 additions and 21 deletions
|
@ -21,7 +21,9 @@ class CrashReporter {
|
|||
extra = {},
|
||||
ignoreSystemCrashHandler = false,
|
||||
submitURL,
|
||||
uploadToServer = true
|
||||
uploadToServer = true,
|
||||
rateLimit = false,
|
||||
compress = false
|
||||
} = options;
|
||||
|
||||
if (companyName == null) throw new Error('companyName is a required option to crashReporter.start');
|
||||
|
@ -39,7 +41,7 @@ class CrashReporter {
|
|||
if (extra._companyName == null) extra._companyName = companyName;
|
||||
if (extra._version == null) extra._version = ret.appVersion;
|
||||
|
||||
binding.start(ret.productName, companyName, submitURL, ret.crashesDirectory, uploadToServer, ignoreSystemCrashHandler, extra);
|
||||
binding.start(ret.productName, companyName, submitURL, ret.crashesDirectory, uploadToServer, ignoreSystemCrashHandler, rateLimit, compress, extra);
|
||||
}
|
||||
|
||||
getLastCrashReport () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue