mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-16 20:21:22 +08:00
5 lines
135 B
JavaScript
5 lines
135 B
JavaScript
export function htmlTagAddAttri(node) {
|
|
if (node && node.tagName === 'html') {
|
|
node.properties['data-color-mode'] = 'dark';
|
|
}
|
|
} |