From 3242195f9f552dffa5034927a0b1eade251ad51f Mon Sep 17 00:00:00 2001 From: Mic Date: Sun, 15 Dec 2024 23:53:00 +0100 Subject: [PATCH] useless comments removed --- js/mzta-compose-script.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/js/mzta-compose-script.js b/js/mzta-compose-script.js index 517a9d6a..10da0bc0 100644 --- a/js/mzta-compose-script.js +++ b/js/mzta-compose-script.js @@ -425,13 +425,11 @@ switch (message.command) { tags_dialog.showModal(); - // Calcola la posizione centrata nel viewport dell'iframe - const iframeHeight = window.innerHeight; // Altezza visibile dell'iframe - const iframeWidth = window.innerWidth; // Larghezza visibile dell'iframe + const iframeHeight = window.innerHeight; + const iframeWidth = window.innerWidth; const dialogRect = tags_dialog.getBoundingClientRect(); - // Assicurati che il dialog sia centrato nel viewport dell'iframe const top = Math.max(0, (iframeHeight - dialogRect.height) / 2); const left = Math.max(0, (iframeWidth - dialogRect.width) / 2);