Skip to content

Commit

Permalink
fix: ignore imageType
Browse files Browse the repository at this point in the history
fix #15
  • Loading branch information
gnlow committed Jan 22, 2024
1 parent 9196fa8 commit dcad565
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ export class Entry {
this.textures = Object.fromEntries(await Promise.all(
this.project.objects.map(({sprite}) =>
sprite.pictures.map(
async ({id, fileurl, filename, imageType, name}) => {
// 엔트리 svg 지원 이전에는 imageType 정보가 없었던 것으로 보임
async ({id, fileurl, filename, name}) => {
let url = `/image/${
filename
? (filename + `.${imageType || "png"}`)
? (filename + `.png`)
: fileurl!.substring(1)
}`

Expand Down

0 comments on commit dcad565

Please sign in to comment.