1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2024-12-23 23:47:57 +01:00
Whalebird-desktop-client-ma.../renderer/utils/domain.ts
2024-01-13 21:44:43 +09:00

8 lines
164 B
TypeScript

export const domainFromAcct = (acct: string): string | null => {
const [_account, server] = acct.split('@')
if (server) {
return server
}
return null
}