fix domain slipping

This commit is contained in:
Peter Clement 2024-02-13 15:48:06 +00:00
parent 2cbd2e1ef3
commit 9fbeda42b8
1 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,8 @@
let hostname = url.hostname
let parts = hostname.split(".")
let tenantId = parts[0]
let domain = parts.slice(-2).join(".")
console.log(domain)
CookieUtils.setCookie("tenantId", tenantId, domain)
}