Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
修复 Android 绑定账号时报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeepeng committed May 28, 2018
1 parent 9e48480 commit fcd04ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ class XGPush {
sound: true
});
} else {
return XGPushManager.registerPush(account);
if (account) {
return XGPushManager.bindAccount(account);
} else {
return XGPushManager.registerPush();
}
}
}

Expand Down

0 comments on commit fcd04ac

Please sign in to comment.