1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 15:25:48 +01:00

Assume browsers support showModal.

This commit is contained in:
Juliusz Chroboczek 2024-05-08 17:19:41 +02:00
parent 1315084185
commit b925bae5de

View file

@ -2163,7 +2163,7 @@ function inviteMenu() {
let d = /** @type {HTMLDialogElement} */
(document.getElementById('invite-dialog'));
if(!('HTMLDialogElement' in window) || !d.showModal) {
makeToken();
displayError("This browser doesn't support modal dialogs");
return;
}
d.returnValue = '';