chore: Change dev and social sites config and option from string to list of strings
This commit is contained in:
@@ -6,3 +6,12 @@ export default function getDomainFromUrl(url: string): string {
|
||||
|
||||
return parts[0] + '//' + parts[2];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns domain from given URL.
|
||||
*/
|
||||
export function getDomainFromUrlWithoutProtocol(url: string): string {
|
||||
const parts = url.split('/');
|
||||
|
||||
return parts[2];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user