From bcbe51e9a7b6870a5e6956ffb20be800320dc47f Mon Sep 17 00:00:00 2001 From: A McIlwraith Date: Mon, 23 Sep 2024 11:40:09 -0400 Subject: [PATCH] Fix error and reinitialize getcss function (reopens #14) --- src/js/core/_core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/core/_core.js b/src/js/core/_core.js index 9f785b0..a33451e 100644 --- a/src/js/core/_core.js +++ b/src/js/core/_core.js @@ -178,9 +178,9 @@ module.exports = { }) } }, - // getCSS: (el, prop, b = false) { - // return window.getComputedStyle(el, null).getPropertyValue(prop); - // }, + getCSS: (el, prop, b = false) => { + return window.getComputedStyle(el, null).getPropertyValue(prop); + }, init: (args = {}) => { const url = getURLVars(); font.size = parseFloat(getComputedStyle(document.documentElement).fontSize.replace("px",""));