prevent default

This commit is contained in:
Bill 2022-03-17 13:57:27 -04:00
parent 67775311b8
commit 13f5bdc8f8

View File

@ -77,6 +77,8 @@ export const NitropediaView: FC<{}> = props =>
{
if(!(event.target instanceof HTMLAnchorElement)) return;
event.preventDefault();
const link = event.target.href;
if(!link || !link.length) return;