Updated frontpage-rotation somewhat, to prevent more than one timer to be active at any given time

This commit is contained in:
Kasper Rynning-Tønnesen
2017-05-05 17:59:56 +02:00
parent f71dcb51e9
commit 267ac9a86e
2 changed files with 4 additions and 2 deletions

View File

@@ -82,8 +82,10 @@ var Frontpage = {
lists.unshift(pinned);
}
if(!Helper.mobilecheck())
if(!Helper.mobilecheck()) {
clearTimeout(rotation_timeout);
Frontpage.add_backdrop(lists, 0);
}
pre_card = $(channel_list);