Fix getcss var function

This commit is contained in:
Ole Eskild Steensen 2022-10-14 12:32:29 +02:00
parent dede9d091d
commit eede17127f

View File

@ -1,6 +1,6 @@
<script>
const getCssVar = (variable) => getComputedStyle(document.documentElement).getPropertyValue(variable);
const getCssVar = (variable) => getComputedStyle(document.body).getPropertyValue(variable);
function htmlDecode(input) {
var doc = new DOMParser().parseFromString(input, "text/html");