Add getCSS
This commit is contained in:
parent
ea92f5e7ac
commit
a60f831900
@ -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",""));
|
||||
|
Loading…
Reference in New Issue
Block a user