animate only on chrome

This commit is contained in:
Jonathan Baecker 2020-04-30 17:24:13 +02:00
parent 233b03ba6f
commit afe2523986

View File

@ -344,9 +344,14 @@ export default {
await this.getPlaylist() await this.getPlaylist()
this.interval = setInterval(() => { if (this.$ua.browser() === 'Chrome') {
this.interval = setInterval(() => {
this.$store.dispatch('playlist/animClock', { dayStart: this.configPlayout.playlist.day_start })
}, 5000)
} else {
this.$store.dispatch('playlist/animClock', { dayStart: this.configPlayout.playlist.day_start }) this.$store.dispatch('playlist/animClock', { dayStart: this.configPlayout.playlist.day_start })
}, 5000) console.log('No anaimation on:', this.$ua.browser())
}
}, },
beforeDestroy () { beforeDestroy () {