use session.poll as well for polling when receiving a message
This commit is contained in:
parent
9610e9b57e
commit
20c3023b94
3 changed files with 14 additions and 19 deletions
|
@ -65,7 +65,7 @@ module.exports = async function signup(session, username, password, homeserver)
|
|||
//wait for registration to finish so the hash gets set
|
||||
//onhashchange better?
|
||||
|
||||
const foundHomeUrl = await session.poll(() => {
|
||||
const foundHomeUrl = await session.poll(async () => {
|
||||
const url = session.page.url();
|
||||
return url === session.url('/#/home');
|
||||
}, 5000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue