fix: color mode preference (#36)

This commit is contained in:
Hasan Demirtaş authored and GitHub committed 2022-04-21 11:31:20 +08:00
1 parent b1eaea501a
commit d42083f93f
1 file changed
+1 -1
+1 -1
View File
@@ -1,7 +1,7 @@
<script setup lang='ts'>
const color = useColorMode()
function toggleDark() {
color.preference = color.preference === 'dark' ? 'light' : 'dark'
color.preference = color.value === 'dark' ? 'light' : 'dark'
}
</script>