Browse Source

fix demo for ssr

pull/11322/head
HeskeyBaozi 6 years ago
parent
commit
e07321024a
  1. 2
      components/icon/demo/svg-sprite.md

2
components/icon/demo/svg-sprite.md

@ -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…
Cancel
Save