|
@ -37,7 +37,7 @@ const messageSymbol = ` |
|
|
</symbol>`; |
|
|
</symbol>`; |
|
|
|
|
|
|
|
|
// insert SVG symbols into document.body |
|
|
// insert SVG symbols into document.body |
|
|
if (document) { |
|
|
if (typeof document === 'object') { |
|
|
const nodeId = '__SVG_SPRITE_NODE__'; |
|
|
const nodeId = '__SVG_SPRITE_NODE__'; |
|
|
const spriteContent = svgSpriteRenderer(nodeId, messageSymbol); |
|
|
const spriteContent = svgSpriteRenderer(nodeId, messageSymbol); |
|
|
const existing = document.getElementById(nodeId); |
|
|
const existing = document.getElementById(nodeId); |
|
|