diff options
| author | Fuwn <[email protected]> | 2026-04-18 09:01:57 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-04-18 09:01:57 +0000 |
| commit | 1fa37578c9290ce20d521f909bf1ebd58d48910b (patch) | |
| tree | 3716e9e0c82ab48fcaecde6a1d27aa4d0080ccdd | |
| parent | fix(media): guard publicMediaListCollection against missing AniList data (diff) | |
| download | due.moe-1fa37578c9290ce20d521f909bf1ebd58d48910b.tar.xz due.moe-1fa37578c9290ce20d521f909bf1ebd58d48910b.zip | |
fix(easter-event): drop dead resize/scroll listener cleanup
The onMount cleanup removed resize and scroll listeners that were
never actually registered — the only live side effect is the
updatePosition interval. Drop the two dead removeEventListener calls
so the cleanup only matches what the component actually sets up.
| -rw-r--r-- | src/lib/Events/AniListBadges/EasterEvent2025/EasterEgg.svelte | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lib/Events/AniListBadges/EasterEvent2025/EasterEgg.svelte b/src/lib/Events/AniListBadges/EasterEvent2025/EasterEgg.svelte index c48003d7..d717f5d0 100644 --- a/src/lib/Events/AniListBadges/EasterEvent2025/EasterEgg.svelte +++ b/src/lib/Events/AniListBadges/EasterEvent2025/EasterEgg.svelte @@ -59,9 +59,6 @@ onMount(() => { return () => { if (intervalId) clearInterval(intervalId); - - window.removeEventListener("resize", updatePosition); - window.removeEventListener("scroll", updatePosition); }; }); |