Fix error and reinitialize getcss function (reopens #14)

This commit is contained in:
A McIlwraith 2024-09-23 11:40:09 -04:00
parent 559552f218
commit bcbe51e9a7

View File

@ -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",""));