mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-30 05:28:46 +01:00
Lint code
This commit is contained in:
@@ -32,10 +32,11 @@ const navs = [
|
||||
function toggleTheme() {
|
||||
if (!document.startViewTransition) {
|
||||
isDark.value = !isDark.value
|
||||
return
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
document.startViewTransition(() => isDark.value = !isDark.value)
|
||||
document.startViewTransition(() => {
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user