diff --git a/.env b/.env index 3fdc16c..1a3f97f 100644 --- a/.env +++ b/.env @@ -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 diff --git a/src/utils/loadImage.ts b/src/utils/loadImage.ts index 413bc8b..d5ac1e3 100644 --- a/src/utils/loadImage.ts +++ b/src/utils/loadImage.ts @@ -2,7 +2,6 @@ export const loadImage = function (url: string): Promise { 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) })