Skip to content

Commit

Permalink
Fix paths when requesting data files
Browse files Browse the repository at this point in the history
  • Loading branch information
follesoe committed Apr 9, 2020
1 parent 4f9b160 commit d7cf489
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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) => {
Expand Down

0 comments on commit d7cf489

Please sign in to comment.