From e763993574e882217420ca58df7b4e5ee31034ee Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Sat, 2 Jan 2021 20:15:30 -0800 Subject: [PATCH] unicorn/prefer-dom-node-append Signed-off-by: Dan Schaper --- scripts/pi-hole/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/js/index.js b/scripts/pi-hole/js/index.js index fa154718..f56d6360 100644 --- a/scripts/pi-hole/js/index.js +++ b/scripts/pi-hole/js/index.js @@ -49,7 +49,7 @@ var customTooltips = function (tooltip) { tooltipEl.style.fontStyle = tooltip._bodyFontStyle; // append Tooltip next to canvas-containing box tooltipEl.ancestor = this._chart.canvas.closest(".box[id]").parentNode; - tooltipEl.ancestor.appendChild(tooltipEl); + tooltipEl.ancestor.append(tooltipEl); } // Hide if no tooltip