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
10 lines
221 B
Plaintext
10 lines
221 B
Plaintext
import { isCSSVar } from './is-css-var.mjs';
|
|
|
|
function setStyle(element, name, value) {
|
|
isCSSVar(name)
|
|
? element.style.setProperty(name, value)
|
|
: (element.style[name] = value);
|
|
}
|
|
|
|
export { setStyle };
|