i have multiple domains for example https://www.ilajobs.com levelcoding.com
when i try to get client origin like this
getOrigin() {
this.origin = window.location.origin;
},
expected result
ilajobs
what i am getting
https://www.ilajobs.com
how to remove TLD from origin