No Cache Fix

This commit is contained in:
ssyyhhrr
2023-03-20 11:40:12 +00:00
parent 12be776ee6
commit b344106c19
2 changed files with 9 additions and 2 deletions

View File

@@ -526,7 +526,7 @@ document.addEventListener('DOMContentLoaded', () => {
}
let scores = JSON.parse(localStorage.scores)
fillStats(stats, scores)
fetch(`${window.location.href}/drivers.json?nocache=${new Date().getTime()}`).then(res => {
fetch(`${window.location.href}/drivers.json`).then(res => {
res.json().then(result => {
driversObj = result
Object.entries(result).forEach(driver => {