patch so it works in any path
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user