From f8d1be0aab9d1bd5df9aa9a87341649e875d9a17 Mon Sep 17 00:00:00 2001 From: eoussama Date: Wed, 31 Jan 2024 22:28:57 +0100 Subject: [PATCH] cached data load --- src/scripts/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/utils.js b/src/scripts/utils.js index 9ca0c44..8100e38 100644 --- a/src/scripts/utils.js +++ b/src/scripts/utils.js @@ -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);