summaryrefslogtreecommitdiff
path: root/src/web/app/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/common')
-rw-r--r--src/web/app/common/mios.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/app/common/mios.ts b/src/web/app/common/mios.ts
index aa07cb0224..1669504af4 100644
--- a/src/web/app/common/mios.ts
+++ b/src/web/app/common/mios.ts
@@ -474,7 +474,7 @@ export default class MiOS extends EventEmitter {
}).then(async (res) => {
if (--pending === 0) spinner.parentNode.removeChild(spinner);
- const body = await res.json();
+ const body = res.status === 204 ? null : await res.json();
if (this.debug) {
req.status = res.status;