Add getCSS

This commit is contained in:
A McIlwraith 2024-08-07 08:08:59 -04:00
parent ea92f5e7ac
commit a60f831900

View File

@ -166,6 +166,9 @@ module.exports = {
})
}
},
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",""));