From 6a23dfb9d8cbf1a62e159944ca49c9d0236360f5 Mon Sep 17 00:00:00 2001 From: CodeDevMLH Date: Mon, 25 Nov 2024 00:49:47 +0100 Subject: [PATCH] add mention trailer --- snowflakes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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');