From 2632c21de32c681d83b80235a219459f9975642b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sat, 5 Jul 2025 20:33:08 +0200 Subject: [PATCH] Removed unnecessary log messages --- app/static/js/fullwidth.js | 1 - app/static/js/iframe.js | 6 ------ 2 files changed, 7 deletions(-) diff --git a/app/static/js/fullwidth.js b/app/static/js/fullwidth.js index 06105e4..f5dbe5a 100644 --- a/app/static/js/fullwidth.js +++ b/app/static/js/fullwidth.js @@ -5,7 +5,6 @@ function setFullWidth(enabled) { var el = document.querySelector('.container, .container-fluid'); if (!el) return; - console.log(el) if (enabled) { el.classList.replace('container', 'container-fluid'); updateUrlFullWidth(true) diff --git a/app/static/js/iframe.js b/app/static/js/iframe.js index 51e847c..4e6435e 100644 --- a/app/static/js/iframe.js +++ b/app/static/js/iframe.js @@ -5,25 +5,19 @@ let mainElement, originalContent, originalMainStyle, container, customScrollbar, function syncIframeHeight() { const iframe = mainElement.querySelector("iframe"); if (iframe) { - console.log("Setting iframe height based on scroll-container inline styles..."); if (scrollbarContainer) { // Prefer inline height, otherwise inline max-height const inlineHeight = scrollbarContainer.style.height; const inlineMax = scrollbarContainer.style.maxHeight; const target = inlineHeight || inlineMax; if (target) { - console.log("Using scroll-container inline style:", target); iframe.style.height = target; } else { - console.warn("No inline height or max-height set on scroll-container. Using main element height instead."); iframe.style.height = mainElement.style.height; } } else { - console.log("No scroll-container found. Using main element height:", mainElement.style.height); iframe.style.height = mainElement.style.height; } - } else { - console.log("No iframe to resize."); } }