reference/scripts/nodes/htmlTagAddAttri.mjs

5 lines
135 B
JavaScript
Raw Normal View History

2022-09-26 17:13:24 +08:00
export function htmlTagAddAttri(node) {
if (node && node.tagName === 'html') {
node.properties['data-color-mode'] = 'dark';
}
}