fix(eslint) : Fix ESLint Errors

This commit is contained in:
osohyun0224 2024-05-25 16:26:14 +09:00
parent 39d5c81fa3
commit 1b4cd4d29b

View file

@ -74,9 +74,8 @@ function renderAnnotationDescription(description: string) {
function renderAnnotationLink(url: string) {
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>;
}
} catch {}
return url;
}