diff --git a/index.html b/index.html index 980e953..344742b 100644 --- a/index.html +++ b/index.html @@ -581,8 +581,8 @@ async function init() { try { const [recipesRes, extractablesRes] = await Promise.all([ - fetch('recipes.json'), - fetch('extractables.json') + fetch(`${window.location.pathname}/recipes.json`), + fetch(`${window.location.pathname}/extractables.json`) ]); recipes = await recipesRes.json(); const extractables = await extractablesRes.json();