mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-22 23:16:48 +00:00
feature:
统计模块
This commit is contained in:
@@ -92,13 +92,13 @@ const initTheme = (theme, changeTheme) => {
|
||||
if (useDark) {
|
||||
changeTheme('dark')
|
||||
saveTheme('dark')
|
||||
htmlElement.classList.remove('light')
|
||||
htmlElement.classList.add('dark')
|
||||
htmlElement.classList?.remove('light')
|
||||
htmlElement.classList?.add('dark')
|
||||
} else {
|
||||
changeTheme('light')
|
||||
saveTheme('light')
|
||||
htmlElement.classList.remove('dark')
|
||||
htmlElement.classList.add('light')
|
||||
htmlElement.classList?.remove('dark')
|
||||
htmlElement.classList?.add('light')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user