diff --git a/src/utils/loadImage.ts b/src/utils/loadImage.ts index ef8f3b3..d5ac1e3 100644 --- a/src/utils/loadImage.ts +++ b/src/utils/loadImage.ts @@ -2,7 +2,7 @@ export const loadImage = function (url: string): Promise { return new Promise((resolve, reject) => { const image = new Image() image.onerror = reject - image.src = new URL(url, import.meta.url + import.meta.env.BASE_URL).href + image.src = new URL(url, window.location.origin + import.meta.env.BASE_URL).href resolve(image) }) }