Fix join button
parent
cdf9547220
commit
9cb823b210
|
@ -109,9 +109,6 @@ let meetApi: any; // JitsiMeetExternalAPI
|
||||||
// Request credentials, give callback to continue when received
|
// Request credentials, give callback to continue when received
|
||||||
openIdToken = await widgetApi.requestOpenIDConnectToken();
|
openIdToken = await widgetApi.requestOpenIDConnectToken();
|
||||||
console.log("Got OpenID Connect token");
|
console.log("Got OpenID Connect token");
|
||||||
enableJoinButton();
|
|
||||||
} else {
|
|
||||||
enableJoinButton();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: register widgetApi listeners for PTT controls (https://github.com/vector-im/riot-web/issues/12795)
|
// TODO: register widgetApi listeners for PTT controls (https://github.com/vector-im/riot-web/issues/12795)
|
||||||
|
@ -122,9 +119,9 @@ let meetApi: any; // JitsiMeetExternalAPI
|
||||||
widgetApi.transport.reply(ev.detail, {}); // ack
|
widgetApi.transport.reply(ev.detail, {}); // ack
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else {
|
|
||||||
enableJoinButton();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
enableJoinButton(); // always enable the button
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("Error setting up Jitsi widget", e);
|
console.error("Error setting up Jitsi widget", e);
|
||||||
document.getElementById("widgetActionContainer").innerText = "Failed to load Jitsi widget";
|
document.getElementById("widgetActionContainer").innerText = "Failed to load Jitsi widget";
|
||||||
|
|
Loading…
Reference in New Issue