mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-02-02 00:16:34 +01:00
quick fixes
This commit is contained in:
parent
400965ffc8
commit
ea4e6fb3ef
@ -28,7 +28,7 @@ public class LicenseKeyChecker {
|
|||||||
this.checkLicense();
|
this.checkLicense();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Scheduled(fixedRate = 604800000) // 7 days in milliseconds
|
@Scheduled(initialDelay = 604800000,fixedRate = 604800000) // 7 days in milliseconds
|
||||||
public void checkLicensePeriodically() {
|
public void checkLicensePeriodically() {
|
||||||
checkLicense();
|
checkLicense();
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
clearFileInput();
|
//clearFileInput();
|
||||||
clearTimeout(timeoutId);
|
clearTimeout(timeoutId);
|
||||||
if (showGameBtn) {
|
if (showGameBtn) {
|
||||||
showGameBtn.style.display = 'none';
|
showGameBtn.style.display = 'none';
|
||||||
@ -163,10 +163,10 @@
|
|||||||
success = true;
|
success = true;
|
||||||
|
|
||||||
if (contentType.includes('application/pdf') || contentType.includes('image/')) {
|
if (contentType.includes('application/pdf') || contentType.includes('image/')) {
|
||||||
clearFileInput();
|
//clearFileInput();
|
||||||
return handleResponse(blob, filename, !isMulti, isZip);
|
return handleResponse(blob, filename, !isMulti, isZip);
|
||||||
} else {
|
} else {
|
||||||
clearFileInput();
|
//clearFileInput();
|
||||||
return handleResponse(blob, filename, false, isZip);
|
return handleResponse(blob, filename, false, isZip);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -276,7 +276,8 @@ function formatText(text) {
|
|||||||
const container = document.createElement('div');
|
const container = document.createElement('div');
|
||||||
|
|
||||||
// Split the text into lines
|
// Split the text into lines
|
||||||
const lines = text.split('\n');
|
const textWithoutComments = text.replace(/<!--[\s\S]*?-->/g, '');
|
||||||
|
const lines = textWithoutComments.split('\n');
|
||||||
let currentList = null;
|
let currentList = null;
|
||||||
|
|
||||||
lines.forEach(line => {
|
lines.forEach(line => {
|
||||||
|
Loading…
Reference in New Issue
Block a user