From 2e5f40c54b57963ee46d8a351d02f05187a0101b Mon Sep 17 00:00:00 2001 From: Reece Browne <74901996+reecebrowne@users.noreply.github.com> Date: Thu, 3 Jul 2025 11:41:55 +0100 Subject: [PATCH 1/2] Update stirling-pdf/src/main/resources/templates/fragments/common.html Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../src/main/resources/templates/fragments/common.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stirling-pdf/src/main/resources/templates/fragments/common.html b/stirling-pdf/src/main/resources/templates/fragments/common.html index 558aab917..135004639 100644 --- a/stirling-pdf/src/main/resources/templates/fragments/common.html +++ b/stirling-pdf/src/main/resources/templates/fragments/common.html @@ -36,7 +36,9 @@ // We need to counter both the browser scaling AND the navbar scaling const dropdownScale = 1.1; - console.log('DPR:', currentDPR, 'navScale:', navScale, 'will apply scaling'); + if (DEBUG) { + console.log('DPR:', currentDPR, 'navScale:', navScale, 'will apply scaling'); + } const navbar = document.querySelector('.navbar'); From 1cd4e177fb143b84bc397585f0a8a1097715d3c1 Mon Sep 17 00:00:00 2001 From: Reece Browne <74901996+reecebrowne@users.noreply.github.com> Date: Thu, 3 Jul 2025 12:01:20 +0100 Subject: [PATCH 2/2] Update common.html --- .../src/main/resources/templates/fragments/common.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/stirling-pdf/src/main/resources/templates/fragments/common.html b/stirling-pdf/src/main/resources/templates/fragments/common.html index 135004639..5f9d6e2b5 100644 --- a/stirling-pdf/src/main/resources/templates/fragments/common.html +++ b/stirling-pdf/src/main/resources/templates/fragments/common.html @@ -36,9 +36,6 @@ // We need to counter both the browser scaling AND the navbar scaling const dropdownScale = 1.1; - if (DEBUG) { - console.log('DPR:', currentDPR, 'navScale:', navScale, 'will apply scaling'); - } const navbar = document.querySelector('.navbar'); @@ -375,4 +372,4 @@ window.stirlingPDF.GoogleDriveAppId = /*[[${@GoogleDriveConfig.getAppId()}]]*/ null; - \ No newline at end of file +