diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-03-16 06:02:18 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-03-16 06:02:18 +0900 |
| commit | 8e9d5e8e2af515e17eb4add5bd8890c53fce90c3 (patch) | |
| tree | 848c9b5315201f3ce04b3d268a35f61e12889251 /src/web/app | |
| parent | :v: (diff) | |
| download | sharkey-8e9d5e8e2af515e17eb4add5bd8890c53fce90c3.tar.gz sharkey-8e9d5e8e2af515e17eb4add5bd8890c53fce90c3.tar.bz2 sharkey-8e9d5e8e2af515e17eb4add5bd8890c53fce90c3.zip | |
Fix bug
Diffstat (limited to 'src/web/app')
| -rw-r--r-- | src/web/app/common/mios.ts | 2 |
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; |