summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/mios.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/app/common/mios.ts b/src/client/app/common/mios.ts
index f4bb60fcdb..41825c3b74 100644
--- a/src/client/app/common/mios.ts
+++ b/src/client/app/common/mios.ts
@@ -457,7 +457,9 @@ export default class MiOS extends EventEmitter {
const id = Math.random().toString();
stream.once(`api-res:${id}`, res => {
- if (res.res) {
+ if (res == null || Object.keys(res).length == 0) {
+ resolve(null);
+ } else if (res.res) {
resolve(res.res);
} else {
reject(res.e);