From eef82a95ba0e3e83bf1d1464febe4f8fc793ec80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 18 Sep 2022 23:04:50 +0200 Subject: Repair user-additions salar. --- static/user/user-additions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/user/user-additions.js b/static/user/user-additions.js index bfc0391d..909f85f2 100644 --- a/static/user/user-additions.js +++ b/static/user/user-additions.js @@ -68,7 +68,7 @@ window.formatters.set('description', async (el, ev, d) => { window.salar = new Promise((resolve, reject) => fetch('/static/user/salar.json') - .then(resp => { if (! resp.ok) reject("404"); else resp.json() }) + .then(resp => ! resp.ok ? reject("404") : resp.json()) .then(d => resolve(d)) .catch(err => reject(err)) ) -- cgit v1.2.3