You've already forked fm-dx-webserver
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user