1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-11-30 07:48:13 +09:00
This commit is contained in:
syuilo 2018-04-14 06:18:18 +09:00
parent 7eac0bb1d6
commit f0be021d85

View File

@ -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);