I have a variety of domains such as https://www.ilajobs.com
and levelcoding.com
When attempting to retrieve the client's origin using the following code:
getOrigin() {
this.origin = window.location.origin;
},
The expected result should be:
ilajobs
However, the actual result I am getting is:
https://www.ilajobs.com
Is there a way to remove the Top Level Domain (TLD) from the origin?