fix(eslint) : Fix ESLint Errors
This commit is contained in:
parent
39d5c81fa3
commit
1b4cd4d29b
|
|
@ -74,9 +74,8 @@ function renderAnnotationDescription(description: string) {
|
||||||
|
|
||||||
function renderAnnotationLink(url: string) {
|
function renderAnnotationLink(url: string) {
|
||||||
try {
|
try {
|
||||||
if (['http:', 'https:'].includes(new URL(url).protocol)) {
|
if (['http:', 'https:'].includes(new URL(url).protocol))
|
||||||
return <a href={url} target='_blank' rel='noopener noreferrer'>{url}</a>;
|
return <a href={url} target='_blank' rel='noopener noreferrer'>{url}</a>;
|
||||||
}
|
|
||||||
} catch {}
|
} catch {}
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue