reference/scripts/nodes/htmlTagAddAttri.mjs
2022-09-26 17:13:38 +08:00

5 lines
135 B
JavaScript

export function htmlTagAddAttri(node) {
if (node && node.tagName === 'html') {
node.properties['data-color-mode'] = 'dark';
}
}