JS: Manually fix two comments in JSX

This commit is contained in:
Asger F
2025-02-21 20:21:17 +01:00
parent 0f23c33d3c
commit 1ee93cf51b

View File

@@ -7,7 +7,7 @@ class Application extends React.Component {
<div className="application">
<Helmet>
<title>My unsafe app</title>
<script type="application/javascript" src={document.location.hash.substr(1)}/> {/* NOT OK */}
<script type="application/javascript" src={document.location.hash.substr(1)}/> {/* $ Alert */}
</Helmet>
</div>
);
@@ -20,7 +20,7 @@ import Link from 'next/link'
export function NextLink() {
return <>
<Link href={document.location.hash}><a>safe</a></Link> {/* OK */}
<Link href={document.location.hash.substr(1)}><a>unsafe</a></Link> {/* NOT OK */}
<Link href={document.location.hash.substr(1)}><a>unsafe</a></Link> {/* $ Alert */}
</>;
}