diff --git a/contribs/gmf/apps/desktop/Controller.js b/contribs/gmf/apps/desktop/Controller.js index 3155a4c2bb83..5eccaf3c7c04 100644 --- a/contribs/gmf/apps/desktop/Controller.js +++ b/contribs/gmf/apps/desktop/Controller.js @@ -101,7 +101,9 @@ const exports = function($scope, $injector) { gettextCatalog.getString('Add a layer'); if ($injector.has('sentryUrl')) { - Raven.config($injector.get('sentryUrl')) + const options = $injector.has('sentryOptions') ? $injector.get('sentryOptions') : undefined; + const raven = new Raven(); + raven.config($injector.get('sentryUrl'), options) .addPlugin(RavenPluginsAngular) .install(); } @@ -112,7 +114,6 @@ olBase.inherits(exports, gmfControllersAbstractDesktopController); exports.module = angular.module('Appdesktop', [ appBase.module.name, gmfControllersAbstractDesktopController.module.name, - RavenPluginsAngular.moduleName, ]); exports.module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata'); diff --git a/contribs/gmf/apps/desktop_alt/Controller.js b/contribs/gmf/apps/desktop_alt/Controller.js index 052e6a5390be..229ed8284b0c 100644 --- a/contribs/gmf/apps/desktop_alt/Controller.js +++ b/contribs/gmf/apps/desktop_alt/Controller.js @@ -131,7 +131,9 @@ const exports = function($scope, $injector, ngeoFile, gettext, $q) { this.bgOpacityOptions = 'Test aus Olten'; if ($injector.has('sentryUrl')) { - Raven.config($injector.get('sentryUrl')) + const options = $injector.has('sentryOptions') ? $injector.get('sentryOptions') : undefined; + const raven = new Raven(); + raven.config($injector.get('sentryUrl'), options) .addPlugin(RavenPluginsAngular) .install(); } @@ -158,7 +160,6 @@ exports.module = angular.module('Appdesktop_alt', [ gmfImportModule.name, ngeoRoutingModule.name, ngeoGooglestreetviewModule.name, - RavenPluginsAngular.moduleName, ]); exports.module.controller('AlternativeDesktopController', exports); diff --git a/contribs/gmf/apps/mobile/Controller.js b/contribs/gmf/apps/mobile/Controller.js index 90e9ff02e736..f5a88f356f0b 100644 --- a/contribs/gmf/apps/mobile/Controller.js +++ b/contribs/gmf/apps/mobile/Controller.js @@ -59,7 +59,9 @@ const exports = function($scope, $injector) { this.searchCoordinatesProjections = [ngeoProjEPSG21781, ngeoProjEPSG2056, 'EPSG:4326']; if ($injector.has('sentryUrl')) { - Raven.config($injector.get('sentryUrl')) + const options = $injector.has('sentryOptions') ? $injector.get('sentryOptions') : undefined; + const raven = new Raven(); + raven.config($injector.get('sentryUrl'), options) .addPlugin(RavenPluginsAngular) .install(); } @@ -70,7 +72,6 @@ olBase.inherits(exports, gmfControllersAbstractMobileController); exports.module = angular.module('Appmobile', [ appBase.module.name, gmfControllersAbstractMobileController.module.name, - RavenPluginsAngular.moduleName, ]); exports.module.controller('MobileController', exports); diff --git a/contribs/gmf/apps/mobile_alt/Controller.js b/contribs/gmf/apps/mobile_alt/Controller.js index 998f703fb6db..090693602772 100644 --- a/contribs/gmf/apps/mobile_alt/Controller.js +++ b/contribs/gmf/apps/mobile_alt/Controller.js @@ -96,7 +96,9 @@ const exports = function($scope, $injector) { }); if ($injector.has('sentryUrl')) { - Raven.config($injector.get('sentryUrl')) + const options = $injector.has('sentryOptions') ? $injector.get('sentryOptions') : undefined; + const raven = new Raven(); + raven.config($injector.get('sentryUrl'), options) .addPlugin(RavenPluginsAngular) .install(); } @@ -108,7 +110,6 @@ olBase.inherits(exports, gmfControllersAbstractMobileController); exports.module = angular.module('Appmobile_alt', [ appBase.module.name, gmfControllersAbstractMobileController.module.name, - RavenPluginsAngular.moduleName, ]); exports.module.controller('AlternativeMobileController', exports); diff --git a/contribs/gmf/apps/oeedit/Controller.js b/contribs/gmf/apps/oeedit/Controller.js index 034b733020b1..fa1cbcceea3a 100644 --- a/contribs/gmf/apps/oeedit/Controller.js +++ b/contribs/gmf/apps/oeedit/Controller.js @@ -210,7 +210,9 @@ const exports = function($scope, $injector, $timeout) { gettextCatalog.getString('Add a layer'); if ($injector.has('sentryUrl')) { - Raven.config($injector.get('sentryUrl')) + const options = $injector.has('sentryOptions') ? $injector.get('sentryOptions') : undefined; + const raven = new Raven(); + raven.config($injector.get('sentryUrl'), options) .addPlugin(RavenPluginsAngular) .install(); } @@ -222,7 +224,6 @@ exports.module = angular.module('Appoeedit', [ appBase.module.name, gmfControllersAbstractDesktopController.module.name, gmfObjecteditingModule.name, - RavenPluginsAngular.moduleName, ]); exports.module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata'); diff --git a/contribs/gmf/apps/oeview/Controller.js b/contribs/gmf/apps/oeview/Controller.js index 7d6c15b5a318..b0697747bc0b 100644 --- a/contribs/gmf/apps/oeview/Controller.js +++ b/contribs/gmf/apps/oeview/Controller.js @@ -101,7 +101,9 @@ const exports = function($scope, $injector) { gettextCatalog.getString('Add a layer'); if ($injector.has('sentryUrl')) { - Raven.config($injector.get('sentryUrl')) + const options = $injector.has('sentryOptions') ? $injector.get('sentryOptions') : undefined; + const raven = new Raven(); + raven.config($injector.get('sentryUrl'), options) .addPlugin(RavenPluginsAngular) .install(); } @@ -112,7 +114,6 @@ olBase.inherits(exports, gmfControllersAbstractDesktopController); exports.module = angular.module('Appoeview', [ appBase.module.name, gmfControllersAbstractDesktopController.module.name, - RavenPluginsAngular.moduleName, ]); exports.module.value('gmfContextualdatacontentTemplateUrl', 'gmf/contextualdata');