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.
@@ -913,14 +913,15 @@ class MainService {
913
913
  console.log(event);
914
914
  }
915
915
  handleNavigationError(event) {
916
- if (!this.environment.skipAppmon) {
917
- const duration = performance.now() - this.navigationStartTime;
918
- this.updateAppMonPerformance(TriggerFromType.navigateError, this.previousUrl, false, duration).subscribe();
919
- }
916
+ const duration = performance.now() - this.navigationStartTime;
917
+ this.updateAppMonPerformance(TriggerFromType.navigateError, this.previousUrl, false, duration).subscribe();
920
918
  console.log(event.error);
921
919
  this.removeLastNavigateRecord();
922
920
  }
923
921
  updateAppMonPerformance(triggerType, url, isSuccess, duration) {
922
+ if (this.environment.skipAppmon) {
923
+ return of({});
924
+ }
924
925
  // Initialize appmonDomainUrl if missing
925
926
  if (!this.resourceApiService.appmonDomainUrl) {
926
927
  this.resourceApiService.appmonDomainUrl = sessionStorage.getItem('AppmonDomainUrl') || '';