Skip to content

Commit

Permalink
Fix: Static assets with base path (github.io)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcustyphoon committed Sep 9, 2023
1 parent b314d19 commit 94d13b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/sections/extras/ExtraSelection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const useStyles = makeStyles()((theme) => ({
fontWeight: 200,
},
item: {
cursor: 'url(/images/cursors/green.png),pointer',
cursor: `url(${import.meta.env.BASE_URL}images/cursors/green.png),pointer`,
},
}));

Expand Down
4 changes: 3 additions & 1 deletion src/components/sections/results/ResultCharacter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ export default function ResultCharacter({ character, weapons, skills, assumedBuf
imageElement={
<img
style={{ width: '100%' }}
src={`/images/professions/${specialization.toLowerCase()}.png`}
src={`${
import.meta.env.BASE_URL
}images/professions/${specialization.toLowerCase()}.png`}
alt="Profession"
/>
}
Expand Down

0 comments on commit 94d13b5

Please sign in to comment.