mmhglobal-dynamicform 2.41.1 → 2.41.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -919,15 +919,16 @@ class MainService {
919
919
  console.log(event);
920
920
  }
921
921
  handleNavigationError(event) {
922
- if (!this.environment.skipAppmon) {
923
- const duration = performance.now() - this.navigationStartTime;
924
- this.updateAppMonPerformance(TriggerFromType.navigateError, this.previousUrl, false, duration).subscribe();
925
- }
922
+ const duration = performance.now() - this.navigationStartTime;
923
+ this.updateAppMonPerformance(TriggerFromType.navigateError, this.previousUrl, false, duration).subscribe();
926
924
  console.log(event.error);
927
925
  this.removeLastNavigateRecord();
928
926
  }
929
927
  updateAppMonPerformance(triggerType, url, isSuccess, duration) {
930
928
  var _a;
929
+ if (this.environment.skipAppmon) {
930
+ return of({});
931
+ }
931
932
  // Initialize appmonDomainUrl if missing
932
933
  if (!this.resourceApiService.appmonDomainUrl) {
933
934
  this.resourceApiService.appmonDomainUrl = sessionStorage.getItem('AppmonDomainUrl') || '';