diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-09-18 23:04:50 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-09-18 23:04:50 +0200 |
commit | eef82a95ba0e3e83bf1d1464febe4f8fc793ec80 (patch) | |
tree | e044c29b22b72d0f5f3c9a2b3348b35fe5c44b49 /static | |
parent | Add uniq to hnh/util. (diff) | |
download | calp-eef82a95ba0e3e83bf1d1464febe4f8fc793ec80.tar.gz calp-eef82a95ba0e3e83bf1d1464febe4f8fc793ec80.tar.xz |
Repair user-additions salar.
Diffstat (limited to 'static')
-rw-r--r-- | static/user/user-additions.js | 2 |
1 files changed, 1 insertions, 1 deletions
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)) ) |