From b925bae5de26b7b3eafa740c2db1517f6465fa5a Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Wed, 8 May 2024 17:19:41 +0200 Subject: [PATCH] Assume browsers support showModal. --- static/galene.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/galene.js b/static/galene.js index 4230819..79da3df 100644 --- a/static/galene.js +++ b/static/galene.js @@ -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 = '';