From 049edc6e40ec1ef600354fa70dadc49504a48eba Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Thu, 13 Jan 2022 16:22:25 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Update=20Chart.js=20and=20Mermai?= =?UTF-8?q?d=20to=20use=20RGB=20css=20vars?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/chart.js | 2 +- assets/js/mermaid.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/chart.js b/assets/js/chart.js index 4d76e7f6..ccf950d4 100644 --- a/assets/js/chart.js +++ b/assets/js/chart.js @@ -1,5 +1,5 @@ function css(name) { - return getComputedStyle(document.documentElement).getPropertyValue(name); + return "rgb(" + getComputedStyle(document.documentElement).getPropertyValue(name) + ")"; } Chart.defaults.font.size = 14; diff --git a/assets/js/mermaid.js b/assets/js/mermaid.js index 59b3e1a1..94795fe4 100644 --- a/assets/js/mermaid.js +++ b/assets/js/mermaid.js @@ -1,5 +1,5 @@ function css(name) { - return getComputedStyle(document.documentElement).getPropertyValue(name); + return "rgb(" + getComputedStyle(document.documentElement).getPropertyValue(name) + ")"; } mermaid.initialize({