feat: crashReporter: expose rateLimit and compress options (#23062)

This commit is contained in:
Jeremy Apthorp 2020-04-14 10:36:31 -07:00 committed by GitHub
parent fdf7e288bb
commit aeaccd00a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 58 additions and 21 deletions

View file

@ -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 () {