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

log innerHTML when onLogin not ready

上级 5ff9a8bb
......@@ -127,8 +127,8 @@ async function onLogin(this: PuppetWeb, memo: string, ttl = 30): Promise<void> {
if (!this.userId) {
log.verbose('PuppetWebEvent', 'onLogin() browser not fully loaded(ttl=%d), retry later', ttl)
const html = this.bridge.innerHTML()
log.silly('PuppetWebEvent', 'onLogin() innerHTML: %s', html)
const html = await this.bridge.innerHTML()
log.silly('PuppetWebEvent', 'onLogin() innerHTML: %s', html.substr(0, 500))
setTimeout(onLogin.bind(this, memo, ttl - 1), TTL_WAIT_MILLISECONDS)
return
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册