From 750d2a6d0147f91783b52b4a99e2df0798c6a4de Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Thu, 16 May 2019 23:25:35 +0200 Subject: [PATCH] Update index.html --- music_assistant/web/index.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/music_assistant/web/index.html b/music_assistant/web/index.html index 3992e87c..ed1448b2 100755 --- a/music_assistant/web/index.html +++ b/music_assistant/web/index.html @@ -240,6 +240,16 @@ watch: {}, mounted() { }, + created() { + // little hack to force refresh PWA on iOS by simple reloading it every hour + var d = new Date(); + var cur_update = d.getDay() + d.getHours(); + if (localStorage.getItem('last_update') != cur_update) + { + localStorage.setItem('last_update', cur_update); + window.location.reload(true); + } + }, data: { }, methods: {}, router -- 2.34.1