Skip to content

Commit

Permalink
Debug on production
Browse files Browse the repository at this point in the history
  • Loading branch information
halamix2 committed Jul 18, 2024
1 parent 11943dd commit 92bd216
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/loadImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ 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 92bd216

Please sign in to comment.