diff --git a/dashboard-ui/themes/holiday/theme.js b/dashboard-ui/themes/holiday/theme.js index 5fa56eaef0..1a563c4b42 100644 --- a/dashboard-ui/themes/holiday/theme.js +++ b/dashboard-ui/themes/holiday/theme.js @@ -32,9 +32,14 @@ } function playThemeMusic() { + + if (getHolidayTheme() == 'off') { + return; + } + if (lastSound == 0) { playSound('https://github.com/MediaBrowser/Emby.Resources/raw/master/themes/holiday/christmas.wav', .1); - } else if (getHolidayTheme() != 'off' && (new Date().getTime() - lastSound) > 30000) { + } else if ((new Date().getTime() - lastSound) > 30000) { playSound('https://github.com/MediaBrowser/Emby.Resources/raw/master/themes/holiday/sleighbells.wav'); } }