Skip to content

Commit

Permalink
reload after vehicle profiles upload
Browse files Browse the repository at this point in the history
  • Loading branch information
meatpiHQ committed Aug 28, 2024
1 parent 3baf430 commit 2f4d810
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -893,8 +893,10 @@ <h2>Custom PIDs:</h2>
console.log('Success:', data);
document.getElementById("ret_msg").style.color = "red";
document.getElementById("ret_msg").innerHTML = data;
// Update car models based on the response if needed
// loadCarModels(data);
// Delay the page refresh by 2 seconds
setTimeout(() => {
window.location.reload();
}, 2000); // 2000 milliseconds = 2 seconds
})
.catch(error => {
console.error('Error:', error);
Expand All @@ -911,8 +913,6 @@ <h2>Custom PIDs:</h2>
}
}



function loadAutoTable(jsonData) {
const data = JSON.parse(jsonData);
const initialisation = data.initialisation;
Expand Down

0 comments on commit 2f4d810

Please sign in to comment.