Merge pull request #1345 from MediaBrowser/master

update theme
This commit is contained in:
Luke 2015-12-20 11:22:17 -05:00
commit d07936210e

View file

@ -32,9 +32,14 @@
} }
function playThemeMusic() { function playThemeMusic() {
if (getHolidayTheme() == 'off') {
return;
}
if (lastSound == 0) { if (lastSound == 0) {
playSound('https://github.com/MediaBrowser/Emby.Resources/raw/master/themes/holiday/christmas.wav', .1); 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'); playSound('https://github.com/MediaBrowser/Emby.Resources/raw/master/themes/holiday/sleighbells.wav');
} }
} }