Skip to content

Commit

Permalink
Use a constant for shared tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbruens committed Oct 6, 2023
1 parent fb9b69c commit b4e3ae7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/www/app/cordova_main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ class CordovaPlatform implements OutlinePlatform {
}

getErrorReporter(env: EnvironmentVariables) {
const sharedTags = {'build.number': env.APP_BUILD_NUMBER};
return this.hasDeviceSupport()
? new CordovaErrorReporter(env.APP_VERSION, env.SENTRY_DSN || '', {'build.number': env.APP_BUILD_NUMBER})
: new SentryErrorReporter(env.APP_VERSION, env.SENTRY_DSN || '', {'build.number': env.APP_BUILD_NUMBER});
? new CordovaErrorReporter(env.APP_VERSION, env.SENTRY_DSN || '', sharedTags)
: new SentryErrorReporter(env.APP_VERSION, env.SENTRY_DSN || '', sharedTags);
}

getUpdater() {
Expand Down

0 comments on commit b4e3ae7

Please sign in to comment.