@opexa/portal-sdk 0.59.11 → 0.59.12

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
@@ -9129,19 +9129,19 @@ var Sdk = class {
9129
9129
  }
9130
9130
  initMarketDomain() {
9131
9131
  if (typeof window === "undefined") return;
9132
+ const searchParams = new URLSearchParams(window.location.search);
9133
+ const hostname = window.location.hostname;
9134
+ const market = searchParams.get("market");
9135
+ const adClickId = this.adManager.clickId;
9132
9136
  if (Capacitor.isNativePlatform()) {
9133
9137
  const platform = Capacitor.getPlatform();
9134
9138
  if (platform === "ios") {
9135
- sessionStorage.setItem("domain", "happybingo.ph/ios");
9139
+ sessionStorage.setItem("domain", `${hostname}/ios`);
9136
9140
  } else {
9137
- sessionStorage.setItem("domain", "happybingo.ph/android");
9141
+ sessionStorage.setItem("domain", `${hostname}/android`);
9138
9142
  }
9139
9143
  return;
9140
9144
  }
9141
- const searchParams = new URLSearchParams(window.location.search);
9142
- const hostname = window.location.hostname;
9143
- const market = searchParams.get("market");
9144
- const adClickId = this.adManager.clickId;
9145
9145
  if (market) {
9146
9146
  sessionStorage.setItem("domain", `${hostname}/${market}`);
9147
9147
  } else if (adClickId) {