Update Shared/Article Rendering/newsfoot.js

Good catch thanks

Co-authored-by: Jed Fox <git@jedfox.com>
This commit is contained in:
Andrew Brehaut 2021-03-11 10:54:25 +13:00 committed by GitHub
parent 54064d7a30
commit b9ea58dc4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@
// Only override the default behaviour when we know we can find the
// target element
const targetElement = document.querySelector(`[id='${targetId}']`);
const targetElement = document.getElementById(targetId);
if (targetElement === null) return;
ev.preventDefault();