Fix Jitsi co-website reloading

This commit is contained in:
Alexis Faizeau 2022-02-10 15:37:04 +01:00
parent 7b6a3949bc
commit 666b6df588
2 changed files with 6 additions and 6 deletions

View file

@ -2156,9 +2156,9 @@ ${escapedMessage}
);
const jitsiUrl = allProps.get(GameMapProperties.JITSI_URL) as string | undefined;
coWebsite.setJitsiLoadPromise(
jitsiFactory.start(roomName, this.playerName, jwt, jitsiConfig, jitsiInterfaceConfig, jitsiUrl)
);
coWebsite.setJitsiLoadPromise(() => {
return jitsiFactory.start(roomName, this.playerName, jwt, jitsiConfig, jitsiInterfaceConfig, jitsiUrl);
});
coWebsiteManager.loadCoWebsite(coWebsite).catch((err) => {
console.error(err);