mirror of
https://github.com/tcsenpai/obsidiangarden_netlify.git
synced 2025-06-06 20:55:21 +00:00
Fix getcss var function
This commit is contained in:
parent
dede9d091d
commit
eede17127f
@ -1,6 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
const getCssVar = (variable) => getComputedStyle(document.documentElement).getPropertyValue(variable);
|
const getCssVar = (variable) => getComputedStyle(document.body).getPropertyValue(variable);
|
||||||
|
|
||||||
function htmlDecode(input) {
|
function htmlDecode(input) {
|
||||||
var doc = new DOMParser().parseFromString(input, "text/html");
|
var doc = new DOMParser().parseFromString(input, "text/html");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user