|
@@ -11,7 +11,12 @@ if (!domain) {
|
|
|
const ipFormat = new RegExp(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/);
|
|
|
const hostname = window.location.hostname;
|
|
|
if (ipFormat.test(hostname)) {
|
|
|
- domain = parseHrefParam(window.location.href, "code");
|
|
|
+ domain =
|
|
|
+ parseHrefParam(window.location.href, "code") ||
|
|
|
+ window.sessionStorage.getItem("ipDomainCode");
|
|
|
+ if (domain) {
|
|
|
+ window.sessionStorage.setItem("ipDomainCode", domain);
|
|
|
+ }
|
|
|
} else {
|
|
|
domain = hostname.split(".")[0];
|
|
|
}
|