ThorVG Viewer is a browser-based rendering tool that shows you the image result of vector resource formats, such as SVG and Lottie. It's powered by the ThorVG engine.
Applied toLowerCase() to check filetype, previously any uppercases(like Jpg, JPG, jSoN) were failed to load. However this patch will support with those cases. (Issue: #14)
Refactored some code for same logic because we have a lot of extensions to show up, I made it into array.
Applied
toLowerCase()
to check filetype, previously any uppercases(like Jpg, JPG, jSoN) were failed to load. However this patch will support with those cases. (Issue: #14)Refactored some code for same logic because we have a lot of extensions to show up, I made it into array.
Added
jpeg
Since jpeg and jpg are same type.