diff options
author | Simon Rettberg | 2023-12-19 15:30:35 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-12-19 15:30:35 +0100 |
commit | 3d18105168a2c4e4d2b42a318c9d0c571fb9e2ca (patch) | |
tree | 0ce3c88479db65b2b12b3ad8c1ed058cf327145c /static | |
parent | Work around broken Chrome (diff) | |
download | dnbd3-status-3d18105168a2c4e4d2b42a318c9d0c571fb9e2ca.tar.gz dnbd3-status-3d18105168a2c4e4d2b42a318c9d0c571fb9e2ca.tar.xz dnbd3-status-3d18105168a2c4e4d2b42a318c9d0c571fb9e2ca.zip |
Diffstat (limited to 'static')
-rw-r--r-- | static/table.html | 6 |
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) { |