Skip to content

Commit

Permalink
Fix image paths
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Jul 18, 2024
1 parent 92bd216 commit 407f2ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .env
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
VITE_LOGO_FIRST=../../assets/logo_gsps/2024.png
VITE_LOGO_SECOND=../../assets/logo_fundacja/logo_fundacja_ITAKA_contra_3.png
VITE_LOGO_FIRST=assets/logo_gsps/2024.png
VITE_LOGO_SECOND=assets/logo_fundacja/logo_fundacja_ITAKA_contra_3.png

VITE_IMAGES_BANNER_RUNNER=../../assets/banners/runner.png
VITE_IMAGES_BANNER_MILESTONE=../../assets/banners/milestone.png
VITE_IMAGES_BANNER_YOUTUBE=../../assets/banners/youtube.png
VITE_IMAGES_GRADIENT=../../assets/gradient.png
VITE_IMAGES_BANNER_RUNNER=assets/banners/runner.png
VITE_IMAGES_BANNER_MILESTONE=assets/banners/milestone.png
VITE_IMAGES_BANNER_YOUTUBE=assets/banners/youtube.png
VITE_IMAGES_GRADIENT=assets/gradient.png

VITE_IMAGES_BANNER_MILESTONE_OLD=assets/banner_milestone_dzieciom2024.png
VITE_IMAGES_BANNER_YOUTUBE_OLD=assets/banner_youtube_dzieciom2024.png
Expand Down
1 change: 0 additions & 1 deletion src/utils/loadImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ export const loadImage = function (url: string): Promise<HTMLImageElement> {
return new Promise((resolve, reject) => {
const image = new Image()
image.onerror = reject
console.log('based', window.location.origin, import.meta.env.BASE_URL, url)
image.src = new URL(url, window.location.origin + import.meta.env.BASE_URL).href
resolve(image)
})
Expand Down

0 comments on commit 407f2ac

Please sign in to comment.