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.
- package/README.md +2 -0
- package/esm2020/lib/services/main.service.mjs +6 -5
- package/fesm2015/mmhglobal-dynamicform.mjs +5 -4
- package/fesm2015/mmhglobal-dynamicform.mjs.map +1 -1
- package/fesm2020/mmhglobal-dynamicform.mjs +5 -4
- package/fesm2020/mmhglobal-dynamicform.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -919,15 +919,16 @@ class MainService {
|
|
|
919
919
|
console.log(event);
|
|
920
920
|
}
|
|
921
921
|
handleNavigationError(event) {
|
|
922
|
-
|
|
923
|
-
|
|
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') || '';
|