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