mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
chore: add caution for primary domain util
This commit is contained in:
parent
748878ce5b
commit
4c783fcaec
1 changed files with 4 additions and 0 deletions
|
@ -1 +1,5 @@
|
|||
/**
|
||||
* **CAUTION:** This function takes the last two parts of the hostname which may cause issues for
|
||||
* some second-level domains, e.g. `.co.uk`.
|
||||
*/
|
||||
export const getPrimaryDomain = () => window.location.hostname.split('.').slice(-2).join('.');
|
||||
|
|
Loading…
Reference in a new issue