mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-24 04:03:07 +02:00
Fix bug
This commit is contained in:
parent
cada902e7a
commit
8e9d5e8e2a
1 changed files with 1 additions and 1 deletions
|
@ -474,7 +474,7 @@ export default class MiOS extends EventEmitter {
|
||||||
}).then(async (res) => {
|
}).then(async (res) => {
|
||||||
if (--pending === 0) spinner.parentNode.removeChild(spinner);
|
if (--pending === 0) spinner.parentNode.removeChild(spinner);
|
||||||
|
|
||||||
const body = await res.json();
|
const body = res.status === 204 ? null : await res.json();
|
||||||
|
|
||||||
if (this.debug) {
|
if (this.debug) {
|
||||||
req.status = res.status;
|
req.status = res.status;
|
||||||
|
|
Loading…
Reference in a new issue