tnx-shared 5.3.58 → 5.3.59

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.
@@ -58069,12 +58069,11 @@
58069
58069
  SplashComponentV1Component.prototype.switchApp = function (item) {
58070
58070
  this.loaded = false;
58071
58071
  if (item.target == '_blank') {
58072
- if (item.url.startsWith('http')) {
58073
- top.location.href = item.url;
58074
- }
58075
- else {
58076
- top.location.href = item.url + "/" + (item.defaultRedirect || '');
58072
+ var url = item.url;
58073
+ if (item.defaultRedirect) {
58074
+ url += "/" + item.defaultRedirect;
58077
58075
  }
58076
+ top.location.href = url;
58078
58077
  }
58079
58078
  else {
58080
58079
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
@@ -58273,12 +58272,11 @@
58273
58272
  SplashComponentV2Component.prototype.switchApp = function (item) {
58274
58273
  this.loaded = false;
58275
58274
  if (item.target == '_blank') {
58276
- if (item.url.startsWith('http')) {
58277
- top.location.href = item.url;
58278
- }
58279
- else {
58280
- top.location.href = item.url + "/" + (item.defaultRedirect || '');
58275
+ var url = item.url;
58276
+ if (item.defaultRedirect) {
58277
+ url += "/" + item.defaultRedirect;
58281
58278
  }
58279
+ top.location.href = url;
58282
58280
  }
58283
58281
  else {
58284
58282
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
@@ -58476,12 +58474,11 @@
58476
58474
  SplashComponentV3Component.prototype.switchApp = function (item) {
58477
58475
  this.loaded = false;
58478
58476
  if (item.target == '_blank') {
58479
- if (item.url.startsWith('http')) {
58480
- top.location.href = item.url;
58481
- }
58482
- else {
58483
- top.location.href = item.url + "/" + (item.defaultRedirect || '');
58477
+ var url = item.url;
58478
+ if (item.defaultRedirect) {
58479
+ url += "/" + item.defaultRedirect;
58484
58480
  }
58481
+ top.location.href = url;
58485
58482
  }
58486
58483
  else {
58487
58484
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {
@@ -58679,12 +58676,11 @@
58679
58676
  SplashComponentV4Component.prototype.switchApp = function (item) {
58680
58677
  this.loaded = false;
58681
58678
  if (item.target == '_blank') {
58682
- if (item.url.startsWith('http')) {
58683
- top.location.href = item.url;
58684
- }
58685
- else {
58686
- top.location.href = item.url + "/" + (item.defaultRedirect || '');
58679
+ var url = item.url;
58680
+ if (item.defaultRedirect) {
58681
+ url += "/" + item.defaultRedirect;
58687
58682
  }
58683
+ top.location.href = url;
58688
58684
  }
58689
58685
  else {
58690
58686
  if (item.defaultRedirect != '' && !this.rootContext.data.flags.menuTopOpenning) {