move hardcoded strings

This commit is contained in:
Peter Clement 2024-02-13 15:42:43 +00:00
parent 3d1018e28c
commit 2cbd2e1ef3
1 changed files with 2 additions and 2 deletions

View File

@ -11,11 +11,11 @@
} }
if ($admin?.checklist?.branding) { if ($admin?.checklist?.branding) {
let url = new URL("http://hello.petertest.com:10001/auth/login") let url = new URL(window.location.href)
let hostname = url.hostname let hostname = url.hostname
let parts = hostname.split(".") let parts = hostname.split(".")
let tenantId = parts[0] let tenantId = parts[0]
CookieUtils.setCookie("tenantId", tenantId, "petertest.com") CookieUtils.setCookie("tenantId", tenantId, domain)
} }
if ( if (