From 979c355d9c3109272a4b4bb049c8673b8398d970 Mon Sep 17 00:00:00 2001 From: "Luna D." Date: Fri, 31 May 2024 20:18:21 +0200 Subject: [PATCH] oh --- assets/js/graph.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/graph.ts b/assets/js/graph.ts index 3a0049b7..379effab 100644 --- a/assets/js/graph.ts +++ b/assets/js/graph.ts @@ -16,7 +16,7 @@ function resizeGraphs() { const graph: SVGPathElement | null = $('#js-barline-graph', el); if (graph) { - graph.setAttribute('style', `transform: scale(${parent.clientWidth / 375});`); + graph.style.transform = `scale(${parent.clientWidth / 375})`; } } });