mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-09 13:07:05 +03:00
use addeventlistener
This commit is contained in:
@@ -293,7 +293,7 @@ async function init() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onscroll = () => createStickyHeader();
|
window.addEventListener("scroll", () => createStickyHeader());
|
||||||
|
|
||||||
optionsContainer.classList.add("animated");
|
optionsContainer.classList.add("animated");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user