mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-17 04:31:22 +08:00
feat: add JavaScript cheatsheet.
This commit is contained in:
5
scripts/nodes/htmlTagAddAttri.mjs
Normal file
5
scripts/nodes/htmlTagAddAttri.mjs
Normal file
@ -0,0 +1,5 @@
|
||||
export function htmlTagAddAttri(node) {
|
||||
if (node && node.tagName === 'html') {
|
||||
node.properties['data-color-mode'] = 'dark';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user