mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-28 12:11:08 -04:00
Compare commits
1 Commits
dark-switc
...
dark-actio
| Author | SHA1 | Date | |
|---|---|---|---|
| 150380791f |
@ -16,13 +16,6 @@ defineProps({
|
||||
|
||||
const globalStore = useGlobalStore()
|
||||
|
||||
const isDark = ref(
|
||||
localStorage.getItem('theme') === 'dark'
|
||||
|| document.documentElement.classList.contains('dark'),
|
||||
)
|
||||
|
||||
globalStore.isDarkModeOn = isDark
|
||||
|
||||
const enabled = computed({
|
||||
get: () => globalStore.isDarkModeOn,
|
||||
set: (value) => {
|
||||
|
||||
Reference in New Issue
Block a user