Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
cached data load
Browse files Browse the repository at this point in the history
  • Loading branch information
eoussama committed Jan 31, 2024
1 parent 4b451ab commit f8d1be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function fetchData(url, key) {
const timeoutFn = setTimeout(() => {
console.log(`[Fetch] '${key}' request timeout, returning cached data instead!`);

fetch(`cache/${key}.json`)
fetch(`./cache/${key}.json`)
.then(e => e.json())
.then(resolve);

Expand Down

0 comments on commit f8d1be0

Please sign in to comment.