@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.js CHANGED
@@ -9064,6 +9064,7 @@ var Sdk = class {
9064
9064
  logs
9065
9065
  };
9066
9066
  this.collectMetaDetails();
9067
+ this.initMarketDomain();
9067
9068
  }
9068
9069
  _fetch = null;
9069
9070
  _middleware;
@@ -9108,9 +9109,8 @@ var Sdk = class {
9108
9109
  const searchParams = new URLSearchParams(window.location.search);
9109
9110
  const hostname = window.location.hostname;
9110
9111
  const market = searchParams.get("market");
9111
- const marketPattern = /^[a-zA-Z0-9]{3,10}(-[a-zA-Z0-9]{3,10}){0,2}$/;
9112
9112
  const adClickId = this.adManager.clickId;
9113
- if (market && marketPattern.test(market)) {
9113
+ if (market) {
9114
9114
  sessionStorage.setItem("domain", `${hostname}/${market}`);
9115
9115
  } else if (adClickId) {
9116
9116
  sessionStorage.setItem("domain", `${hostname}/meta-ads`);