Skip to content

Conversation

@abdul-alhasany
Copy link
Contributor

@abdul-alhasany abdul-alhasany commented Jun 23, 2022

Fixes #57

Copy link
Owner

@jpkleemans jpkleemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for your PR. Good idea!
Can you run the linter npm run lint?

try {
svg = await fs.readFile(path, 'utf-8')
} catch (ex) {
console.log("File couldn't be loaded, fallback to default loader", id, ex)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe use console.warn instead of console.log?

@jpkleemans jpkleemans merged commit e528e6f into jpkleemans:main Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SVG is loading is not loading as a component

2 participants