Sindarius / npm_gcodeviewer

Unnecessary concatenation of literals or template literals found JS-0096
Anti-pattern
Minor
3 months agoa year old
Unexpected string concatenation of literals
152      .attr('xmlns', 'http://www.w3.org/2000/svg') 
153      .node(); //.parentNode.innerHTML; 
154 
155    var doctype = '<?xml version="1.0" standalone="no"?>' + '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'; 156 
157    var source = new XMLSerializer().serializeToString(html); 
158    var blob = new Blob([doctype + source], { type: 'image/svg+xml' });