Fixed teams urls.
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
.favicon {
|
||||
margin-inline-end: 8px;
|
||||
}
|
||||
@@ -1,5 +1,3 @@
|
||||
import styles from './Favicon.module.css';
|
||||
|
||||
function getHostName(url: string) {
|
||||
const match = url.match(/^(?:https?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:/\n?=]+)/im);
|
||||
return match && match.length > 1 ? match[1] : null;
|
||||
@@ -14,7 +12,6 @@ export function Favicon({ domain, ...props }) {
|
||||
|
||||
return hostName ? (
|
||||
<img
|
||||
className={styles.favicon}
|
||||
src={`https://icons.duckduckgo.com/ip3/${hostName}.ico`}
|
||||
width={16}
|
||||
height={16}
|
||||
|
||||
Reference in New Issue
Block a user