This PR fixes the issue of the extra icons being added when the icon packs are switched. It appears the issue is being caused by the prepend behavior I used for the new icons. In the case where you attempt to replace the icon from this pack, it doesn't see a previous sibling with the icon pack, so it just prepends it.
The fix was checking to see if the svgEl the extension is looking at actually comes from this pack, and in the case where it does, actually do a replace instead of prepending it.
Closes #63
This PR fixes the issue of the extra icons being added when the icon packs are switched. It appears the issue is being caused by the prepend behavior I used for the new icons. In the case where you attempt to replace the icon from this pack, it doesn't see a previous sibling with the icon pack, so it just prepends it.
The fix was checking to see if the
svgEl
the extension is looking at actually comes from this pack, and in the case where it does, actually do a replace instead of prepending it.