This commit is contained in:
Wei Zhu 2018-01-05 15:57:40 +08:00
parent 0125ae075f
commit aadff2d569

View File

@ -22,6 +22,7 @@ export default function svgBgToParallax(children, i = 0) {
return svgChildren;
}
if (typeof window !== 'undefined') {
//
const div = document.createElement('div');
div.style.display = 'none';
@ -54,3 +55,4 @@ document.body.appendChild(div);
img.src = src;
div.appendChild(img);
});
}