From 7db81d01735170f60bf8ce35b9f57f73cb84cbfe Mon Sep 17 00:00:00 2001 From: DhammaCharts <100090806+DhammaCharts@users.noreply.github.com> Date: Sun, 10 Jul 2022 08:10:12 +0100 Subject: [PATCH] try fix graph in modal --- layouts/partials/head.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 99a1d8dff..6ae50e235 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -121,7 +121,14 @@ {{end}} - // draw graph in modal + // draw graph in modal // not working + + // const containerModal = document.getElementById("graph-container-modal") + // // retry if the graph is not ready + // if (!containerModal) return requestAnimationFrame(render) + // // clear the graph in case there is anything within it + // containerModal.textContent = "" + drawGraph( {{strings.TrimRight "/" .Site.BaseURL}}, true,