Skip to content
Snippets Groups Projects
domain.ts 143 B
Newer Older
export function getDomainName(hostName: string) {
  return hostName.substring(hostName.lastIndexOf('.', hostName.lastIndexOf('.') - 1) + 1);
}