fix console error

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-11-11 20:32:06 +02:00
parent 9147427996
commit 4202187a83
1 changed files with 1 additions and 5 deletions

View File

@ -181,11 +181,7 @@ function smoothScrollTop()
// Click navbar to scroll back to top
(() => {
let toplisteners = [
document.querySelector('nav')
];
for (let i of toplisteners)
for (const i of document.querySelectorAll('nav'))
{
i.addEventListener('click', (e) => {
if (e.target.id === "navbar" ||