Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
splittedSvg[i] = splittedElement[1].substring(2);
i += 2;
}
let svgString = splittedSvg.join();
let placeholder = document.createElement('div');
placeholder.innerHTML = svgString;
let element = placeholder.firstChild;
svg.saveSvgAsPng(element, `${screenshotProperties.name}.png`);
} else {
var svg_el = select("svg")
.attr("version", 1.1)
.attr("xmlns", "http://www.w3.org/2000/svg")
.node();
downloadSvg(select("svg").node(), `${screenshotProperties.name}`);
}
}