Skip to content

Commit

Permalink
Link fix
Browse files Browse the repository at this point in the history
  • Loading branch information
brunopc-net committed Aug 15, 2024
1 parent fedaeab commit 9ba4c18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Reactsume.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const Resume = ({ data, theme: Theme, lang }) => {

useEffect(() => {
// If pdf exists, setting the pdf file url to pass to the Theme
const pdfFile = `/Reactsume/resume-${lang}.pdf`;
const pdfFile = `/resume-${lang}.pdf`;
fetch(`.${pdfFile}`).then((response) => response.ok &&
setPdf({ fileUrl: pdfFile, fileName: downloadFilename })
setPdf({ fileUrl: '/Reactsume'+pdfFile, fileName: downloadFilename })
)
}, []);

Expand Down

0 comments on commit 9ba4c18

Please sign in to comment.