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

code clean

上级 afc30a46
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册