Commit b925bae5 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Assume browsers support showModal.

parent 13150841
......@@ -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 = '';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment