patch so it works in any path

This commit is contained in:
2026-01-24 19:51:50 -05:00
parent 0c00860625
commit 645424d626

View File

@@ -581,8 +581,8 @@
async function init() { async function init() {
try { try {
const [recipesRes, extractablesRes] = await Promise.all([ const [recipesRes, extractablesRes] = await Promise.all([
fetch('recipes.json'), fetch(`${window.location.pathname}/recipes.json`),
fetch('extractables.json') fetch(`${window.location.pathname}/extractables.json`)
]); ]);
recipes = await recipesRes.json(); recipes = await recipesRes.json();
const extractables = await extractablesRes.json(); const extractables = await extractablesRes.json();