1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-27 06:23:53 +01:00

bugfix pack

This commit is contained in:
NoobishSVK
2024-08-29 21:42:14 +02:00
parent d1c0e53da0
commit 7830deabc9
10 changed files with 141 additions and 117 deletions

View File

@@ -1,11 +1,12 @@
var currentDate = new Date('Aug 1, 2024 20:00:00');
var currentDate = new Date('Aug 28, 2024 22:00:00');
var day = currentDate.getDate();
var month = currentDate.getMonth() + 1; // Months are zero-indexed, so add 1
var year = currentDate.getFullYear();
var formattedDate = day + '/' + month + '/' + year;
var currentVersion = 'v1.2.6a [' + formattedDate + ']';
var currentVersion = 'v1.2.7 [' + formattedDate + ']';
getInitialSettings();
removeUrlParameters(); // Call this function to remove URL parameters
function getInitialSettings() {
$.ajax({
@@ -26,4 +27,12 @@ function getInitialSettings() {
console.error('Error:', error);
}
});
}
}
function removeUrlParameters() {
// Get the current URL without the query parameters
var urlWithoutParams = window.location.protocol + "//" + window.location.host + window.location.pathname;
// Replace the current URL with the new one, without reloading the page
window.history.replaceState({ path: urlWithoutParams }, '', urlWithoutParams);
}