summaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorSimon Rettberg2023-12-19 15:30:35 +0100
committerSimon Rettberg2023-12-19 15:30:35 +0100
commit3d18105168a2c4e4d2b42a318c9d0c571fb9e2ca (patch)
tree0ce3c88479db65b2b12b3ad8c1ed058cf327145c /static
parentWork around broken Chrome (diff)
downloaddnbd3-status-master.tar.gz
dnbd3-status-master.tar.xz
dnbd3-status-master.zip
table: Fix exception breaking update intervalHEADmaster
Diffstat (limited to 'static')
-rw-r--r--static/table.html6
1 files 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) {