bartbutenaers / node-red-contrib-ui-svg

A Node-RED widget node to show interactive SVG (vector graphics) in the dashboard
Apache License 2.0
94 stars 27 forks source link

Remove temporary DOM #25

Closed bartbutenaers closed 5 years ago

bartbutenaers commented 5 years ago

There is some old unused code in the html file, that should be removed:

// Allow manipulation of the SVG string, by loading it temporarily in the DOM
// See https://stackoverflow.com/questions/24107288/create-an-svg-dom-element-from-a-string
var svgDom = document.createElement("div");
svgDom.innerHTML = svgString;