From ea4e6fb3ef2a1b0f570d4b1b4639f8b7c73f31f9 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com.> Date: Thu, 5 Dec 2024 19:04:21 +0000 Subject: [PATCH] quick fixes --- .../java/stirling/software/SPDF/EE/LicenseKeyChecker.java | 2 +- src/main/resources/static/js/downloader.js | 6 +++--- src/main/resources/templates/releases.html | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java b/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java index 9217e7ce..93648dfa 100644 --- a/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java +++ b/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java @@ -28,7 +28,7 @@ public class LicenseKeyChecker { this.checkLicense(); } - @Scheduled(fixedRate = 604800000) // 7 days in milliseconds + @Scheduled(initialDelay = 604800000,fixedRate = 604800000) // 7 days in milliseconds public void checkLicensePeriodically() { checkLicense(); } diff --git a/src/main/resources/static/js/downloader.js b/src/main/resources/static/js/downloader.js index bb16dcad..4131b49a 100644 --- a/src/main/resources/static/js/downloader.js +++ b/src/main/resources/static/js/downloader.js @@ -82,7 +82,7 @@ } } - clearFileInput(); + //clearFileInput(); clearTimeout(timeoutId); if (showGameBtn) { showGameBtn.style.display = 'none'; @@ -163,10 +163,10 @@ success = true; if (contentType.includes('application/pdf') || contentType.includes('image/')) { - clearFileInput(); + //clearFileInput(); return handleResponse(blob, filename, !isMulti, isZip); } else { - clearFileInput(); + //clearFileInput(); return handleResponse(blob, filename, false, isZip); } } catch (error) { diff --git a/src/main/resources/templates/releases.html b/src/main/resources/templates/releases.html index f853006f..36c18d1e 100644 --- a/src/main/resources/templates/releases.html +++ b/src/main/resources/templates/releases.html @@ -276,7 +276,8 @@ function formatText(text) { const container = document.createElement('div'); // Split the text into lines - const lines = text.split('\n'); + const textWithoutComments = text.replace(//g, ''); + const lines = textWithoutComments.split('\n'); let currentList = null; lines.forEach(line => {