Skip to content
Snippets Groups Projects
Commit 8e9d5e8e authored by syuilo's avatar syuilo
Browse files

Fix bug

parent cada902e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment