Assume browsers support showModal.
This commit is contained in:
+1
-1
@@ -2163,7 +2163,7 @@ function inviteMenu() {
|
|||||||
let d = /** @type {HTMLDialogElement} */
|
let d = /** @type {HTMLDialogElement} */
|
||||||
(document.getElementById('invite-dialog'));
|
(document.getElementById('invite-dialog'));
|
||||||
if(!('HTMLDialogElement' in window) || !d.showModal) {
|
if(!('HTMLDialogElement' in window) || !d.showModal) {
|
||||||
makeToken();
|
displayError("This browser doesn't support modal dialogs");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
d.returnValue = '';
|
d.returnValue = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user