From 3d18105168a2c4e4d2b42a318c9d0c571fb9e2ca Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 19 Dec 2023 15:30:35 +0100 Subject: table: Fix exception breaking update interval --- static/table.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/static/table.html b/static/table.html index d1f298e..7247586 100644 --- a/static/table.html +++ b/static/table.html @@ -205,8 +205,10 @@ var app = new Vue({ }, methods: { async updateData () { - const response = await fetch('/data2.json') - this.rawData = await response.json() + try { + const response = await fetch('/data2.json') + this.rawData = await response.json() + } catch {} setTimeout(this.updateData, 2000) }, calcSpeed (obj, objData) { -- cgit v1.2.3-55-g7522