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

Multiple DOM append #1

Closed
clemator opened this issue Oct 24, 2018 · 0 comments
Closed

Multiple DOM append #1

clemator opened this issue Oct 24, 2018 · 0 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@clemator
Copy link

document.head.appendChild(styleEl)

Here, there should be a condition to check whether the element is already present, otherwise multiple style element are appended.

Something like :

    styleEl.id = 'Ripple-effect-style'
    if (! document.getElementById('Ripple-effect-style'))
      document.head.appendChild(styleEl)
@spemer spemer self-assigned this Oct 25, 2018
@spemer spemer added the good first issue Good for newcomers label Oct 25, 2018
@spemer spemer closed this as completed in a386b1d Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants