Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix qq install action
  • Loading branch information
Roy_chenqian committed Feb 26, 2018
commit aa3ed9f8d3779f4ce4b3e926a7204460c45d9698
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ QQAPIEmitter.addListener('QQ_Resp', resp => {
callback && callback(resp);
});

export function isQQInstalledAction() {
return QQAPI.isQQInstalled().then((res)=>{
() => waitForResponse("QQAuthorizeResponse")
})
}

export function login(scopes) {
return QQAPI.login(scopes)
.then(() => waitForResponse("QQAuthorizeResponse"));
Expand All @@ -77,3 +83,4 @@ export function logout(){