From: marcelveldt Date: Thu, 16 May 2019 21:25:35 +0000 (+0200) Subject: Update index.html X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=750d2a6d0147f91783b52b4a99e2df0798c6a4de;p=music-assistant-server.git Update index.html --- 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