Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
11 lines
285 B
Plaintext
11 lines
285 B
Plaintext
import { isCSSVar } from './is-css-var.mjs';
|
|
|
|
function getComputedStyle(element, name) {
|
|
const computedStyle = window.getComputedStyle(element);
|
|
return isCSSVar(name)
|
|
? computedStyle.getPropertyValue(name)
|
|
: computedStyle[name];
|
|
}
|
|
|
|
export { getComputedStyle };
|