diff --git a/src/sparkline.js b/src/sparkline.js index 5cf8949..2eb07fa 100644 --- a/src/sparkline.js +++ b/src/sparkline.js @@ -3,7 +3,7 @@ function getY(max, height, diff, value) { } function removeChildren(svg) { - svg.querySelectorAll("*").forEach(element => svg.removeChild(element)); + [...svg.querySelectorAll("*")].forEach(element => svg.removeChild(element)); } function defaultFetch(entry) {