From 6f936bc99791ef8ea1e4b2663b21c6b3be3b10b9 Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Mon, 15 Jul 2024 00:46:45 +0200 Subject: [PATCH] I can't spell. Don't look at it. --- public/scripts/popup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/scripts/popup.js b/public/scripts/popup.js index 4b69041d0..691f42aae 100644 --- a/public/scripts/popup.js +++ b/public/scripts/popup.js @@ -339,9 +339,9 @@ export class Popup { this.dlg.addEventListener('cancel', cancelListener.bind(this)); // Don't ask me why this is needed. I don't get it. But we have to keep it. - // We make sure that the modal on it's own doesn't hide. Dunno why, if onClosing is triggered multiple times through the cancel event, and stopped - // It seems to just call 'close' on the dialog even if the 'cancel' event was prevented. - // Here, we just say that close should not happen if the dalog has no result. + // We make sure that the modal on its own doesn't hide. Dunno why, if onClosing is triggered multiple times through the cancel event, and stopped, + // it seems to just call 'close' on the dialog even if the 'cancel' event was prevented. + // So here we just say that close should not happen if it was prevented. const closeListener = async (evt) => { if (this.#isClosingPrevented) { evt.preventDefault();