@opexa/portal-sdk 0.59.7 → 0.59.8

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/dist/index.cjs CHANGED
@@ -9069,6 +9069,7 @@ var Sdk = class {
9069
9069
  logs
9070
9070
  };
9071
9071
  this.collectMetaDetails();
9072
+ this.initMarketDomain();
9072
9073
  }
9073
9074
  _fetch = null;
9074
9075
  _middleware;
@@ -9113,9 +9114,8 @@ var Sdk = class {
9113
9114
  const searchParams = new URLSearchParams(window.location.search);
9114
9115
  const hostname = window.location.hostname;
9115
9116
  const market = searchParams.get("market");
9116
- const marketPattern = /^[a-zA-Z0-9]{3,10}(-[a-zA-Z0-9]{3,10}){0,2}$/;
9117
9117
  const adClickId = this.adManager.clickId;
9118
- if (market && marketPattern.test(market)) {
9118
+ if (market) {
9119
9119
  sessionStorage.setItem("domain", `${hostname}/${market}`);
9120
9120
  } else if (adClickId) {
9121
9121
  sessionStorage.setItem("domain", `${hostname}/meta-ads`);