@hmcts/rpx-xui-common-lib 2.0.2-pre-release-accessibility-updated-version → 2.0.2-pre-release-accessibility-updated-filter-new

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.
@@ -36,14 +36,14 @@
36
36
  }
37
37
  AccessibilityComponent.prototype.ngOnInit = function () {
38
38
  var urlRef = window.location.href;
39
- // pointing to MC & preview. May need to refactor this if needed for
40
- // more applications
39
+ // pointing to MC & preview. May need to refactor this if
40
+ // more applications added than MO & MC
41
41
  if (urlRef.includes('manage-case')
42
- || urlRef.includes('xui-webapp')) {
42
+ || urlRef.includes('xui-webapp')
43
+ && !urlRef.includes('xui-mo-webapp')) {
43
44
  this.isEndpointMC = true;
44
45
  }
45
46
  else {
46
- // pointing to MO.
47
47
  this.isEndpointMC = false;
48
48
  }
49
49
  };