提交 e286ec8e 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

Merge branch 'master' of github.com:Chatie/wechaty

......@@ -153,7 +153,7 @@ export class Bridge extends EventEmitter {
await this.readyAngular(page)
await this.inject(page)
const clicked = await this.clickSwitchAccount()
const clicked = await this.clickSwitchAccount(page)
if (clicked) {
log.verbose('PuppetWebBridge', 'initPage() onLoad() clickSwitchAccount() clicked')
} else {
......@@ -699,7 +699,7 @@ export class Bridge extends EventEmitter {
})
}
public async clickSwitchAccount(page: Page = this.page): Promise<boolean> {
public async clickSwitchAccount(page: Page): Promise<boolean> {
log.verbose('PuppetWebBridge', 'clickSwitchAccount()')
// https://github.com/GoogleChrome/puppeteer/issues/537#issuecomment-334918553
......
......@@ -197,9 +197,9 @@
return
}
if (!WechatyBro.glue.loginScope) {
log('checkScan() - loginScope disappeared, no more check')
login('loginScope disappeared')
return
log('checkScan() - loginScope disappeared, TODO: find out the reason why this happen')
// login('loginScope disappeared')
// return
}
// loginScope.code:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册