diff options
Diffstat (limited to 'static/user/user-additions.js')
-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)) ) |