From d7cf48920956933f21f32273d4afe8ac3547f8d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Folles=C3=B8?= Date: Thu, 9 Apr 2020 10:59:49 +0200 Subject: [PATCH] Fix paths when requesting data files --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index fa57955..f15b07d 100644 --- a/src/App.js +++ b/src/App.js @@ -38,7 +38,7 @@ class BattleGoals extends React.Component { this.drawCard = this.drawCard.bind(this); } componentDidMount() { - fetch(process.env.PUBLIC_URL + 'gloomhaven/data/battle-goals.js') + fetch(process.env.PUBLIC_URL + '/gloomhaven/data/battle-goals.js') .then(res => res.json()) .then( (result) => { @@ -92,7 +92,7 @@ class ItemsDeck extends React.Component { }; } componentDidMount() { - fetch(process.env.PUBLIC_URL + 'gloomhaven/data/items.js') + fetch(process.env.PUBLIC_URL + '/gloomhaven/data/items.js') .then(res => res.json()) .then( (result) => {