Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix injection in case if there is no style-element #6

Merged
merged 1 commit into from
Jun 11, 2020

Conversation

tonn
Copy link
Contributor

@tonn tonn commented Jun 4, 2020

You check if (currentStyleTags.length - 1 === index && styleAlreadyAdded === false) { inside currentStyleTags.forEach. But what if currentStyleTags is empty?

@adamlacombe adamlacombe merged commit a4cf9d9 into adamlacombe:master Jun 11, 2020
@adamlacombe
Copy link
Owner

Looks good, thanks for the PR @tonn!

@adamlacombe adamlacombe mentioned this pull request Jun 11, 2020
@tonn tonn deleted the patch-1 branch June 11, 2020 16:02
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.

None yet

2 participants