mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix demo for ssr
This commit is contained in:
parent
50f5ee9059
commit
e07321024a
@ -37,7 +37,7 @@ const messageSymbol = `
|
||||
</symbol>`;
|
||||
|
||||
// insert SVG symbols into document.body
|
||||
if (document) {
|
||||
if (typeof document === 'object') {
|
||||
const nodeId = '__SVG_SPRITE_NODE__';
|
||||
const spriteContent = svgSpriteRenderer(nodeId, messageSymbol);
|
||||
const existing = document.getElementById(nodeId);
|
||||
|
Loading…
Reference in New Issue
Block a user