@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.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9134,19 +9134,19 @@ var Sdk = class {
|
|
|
9134
9134
|
}
|
|
9135
9135
|
initMarketDomain() {
|
|
9136
9136
|
if (typeof window === "undefined") return;
|
|
9137
|
+
const searchParams = new URLSearchParams(window.location.search);
|
|
9138
|
+
const hostname = window.location.hostname;
|
|
9139
|
+
const market = searchParams.get("market");
|
|
9140
|
+
const adClickId = this.adManager.clickId;
|
|
9137
9141
|
if (core.Capacitor.isNativePlatform()) {
|
|
9138
9142
|
const platform = core.Capacitor.getPlatform();
|
|
9139
9143
|
if (platform === "ios") {
|
|
9140
|
-
sessionStorage.setItem("domain",
|
|
9144
|
+
sessionStorage.setItem("domain", `${hostname}/ios`);
|
|
9141
9145
|
} else {
|
|
9142
|
-
sessionStorage.setItem("domain",
|
|
9146
|
+
sessionStorage.setItem("domain", `${hostname}/android`);
|
|
9143
9147
|
}
|
|
9144
9148
|
return;
|
|
9145
9149
|
}
|
|
9146
|
-
const searchParams = new URLSearchParams(window.location.search);
|
|
9147
|
-
const hostname = window.location.hostname;
|
|
9148
|
-
const market = searchParams.get("market");
|
|
9149
|
-
const adClickId = this.adManager.clickId;
|
|
9150
9150
|
if (market) {
|
|
9151
9151
|
sessionStorage.setItem("domain", `${hostname}/${market}`);
|
|
9152
9152
|
} else if (adClickId) {
|