diff --git a/src/www/app/cordova_main.ts b/src/www/app/cordova_main.ts index a637dbde77..025d713ecf 100644 --- a/src/www/app/cordova_main.ts +++ b/src/www/app/cordova_main.ts @@ -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() {