Update Shared/Article Rendering/newsfoot.js
Good catch thanks Co-authored-by: Jed Fox <git@jedfox.com>
This commit is contained in:
parent
97b783db38
commit
34f00b7780
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue