add mention trailer
This commit is contained in:
@@ -10,11 +10,12 @@ function toggleSnowflakes() {
|
|||||||
if (!snowflakeContainer) return;
|
if (!snowflakeContainer) return;
|
||||||
|
|
||||||
const videoPlayer = document.querySelector('.videoPlayerContainer');
|
const videoPlayer = document.querySelector('.videoPlayerContainer');
|
||||||
|
const trailerPlayer = document.querySelector('.youtubePlayerContainer');
|
||||||
const isDashboard = document.body.classList.contains('dashboardDocument');
|
const isDashboard = document.body.classList.contains('dashboardDocument');
|
||||||
const hasUserMenu = document.querySelector('#app-user-menu');
|
const hasUserMenu = document.querySelector('#app-user-menu');
|
||||||
|
|
||||||
// hide snowflakes if video player is active or dashboard is visible
|
// 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
|
snowflakeContainer.style.display = 'none'; // hide snowflakes
|
||||||
if (!msgPrinted) {
|
if (!msgPrinted) {
|
||||||
console.log('Snowflakes hidden');
|
console.log('Snowflakes hidden');
|
||||||
|
Reference in New Issue
Block a user