mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-08 04:27:15 +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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user