From b4e3ae73c05c6a139a4e454a528db5991b6c915c Mon Sep 17 00:00:00 2001 From: Sander Bruens Date: Fri, 6 Oct 2023 15:32:56 -0400 Subject: [PATCH] Use a constant for shared tags. --- src/www/app/cordova_main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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() {