From 3ea0709c77c45f8022da675f0af2bbccad7b8a64 Mon Sep 17 00:00:00 2001 From: CodeDevMLH <145071728+CodeDevMLH@users.noreply.github.com> Date: Tue, 24 Feb 2026 19:24:12 +0100 Subject: [PATCH] Refactor toggleSnowfall function: clean up observer setup by removing unnecessary comments --- Jellyfin.Plugin.Seasonals/Web/snowfall.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jellyfin.Plugin.Seasonals/Web/snowfall.js b/Jellyfin.Plugin.Seasonals/Web/snowfall.js index 45bd131..b2047d4 100644 --- a/Jellyfin.Plugin.Seasonals/Web/snowfall.js +++ b/Jellyfin.Plugin.Seasonals/Web/snowfall.js @@ -47,12 +47,10 @@ function toggleSnowfall() { // observe changes in the DOM const observer = new MutationObserver(toggleSnowfall); - -// start observation observer.observe(document.body, { - childList: true, // observe adding/removing of child elements - subtree: true, // observe all levels of the DOM tree - attributes: true // observe changes to attributes (e.g. class changes) + childList: true, + subtree: true, + attributes: true }); let resizeObserver; // Observer for resize events