From 6708bb17a310518753ae1dff6da32d0972e1a0eb Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Wed, 9 Apr 2025 09:12:23 -0700 Subject: [PATCH] chore: set resync icon to continue animation until page refreshes --- tvapp2/www/index.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tvapp2/www/index.html b/tvapp2/www/index.html index cf81eb1f..975a65e2 100644 --- a/tvapp2/www/index.html +++ b/tvapp2/www/index.html @@ -1,9 +1,9 @@ + <%= appName %> - v<%= appVersion %> - <%= appName %> - v<%= appVersion %> @@ -383,11 +383,14 @@ dimmer.classList.remove('dimmer-in'); dimmer.classList.add('dimmer-out'); dimmer.remove(); - const iconResync = document.getElementsByClassName('fa-rotate'); - iconResync[0].classList.remove('spin'); - iconResync[0].classList.add('restart'); - setTimeout(location.reload.bind(location), 5000); + setTimeout(function() + { + const iconResync = document.getElementsByClassName('fa-rotate'); + iconResync[0].classList.remove('spin'); + iconResync[0].classList.add('restart'); + document.location.reload() + }, 5000); }, 1000); } });