diff --git a/snowflakes.js b/snowflakes.js index 492dec4..289ad24 100644 --- a/snowflakes.js +++ b/snowflakes.js @@ -10,11 +10,12 @@ function toggleSnowflakes() { if (!snowflakeContainer) return; const videoPlayer = document.querySelector('.videoPlayerContainer'); + const trailerPlayer = document.querySelector('.youtubePlayerContainer'); const isDashboard = document.body.classList.contains('dashboardDocument'); const hasUserMenu = document.querySelector('#app-user-menu'); // hide snowflakes if video player is active or dashboard is visible - if (videoPlayer || isDashboard || hasUserMenu) { + if (videoPlayer || trailerPlayer || isDashboard || hasUserMenu) { snowflakeContainer.style.display = 'none'; // hide snowflakes if (!msgPrinted) { console.log('Snowflakes hidden');