diff --git a/web/src/store/index.js b/web/src/store/index.js index 2f40f47..05706c0 100644 --- a/web/src/store/index.js +++ b/web/src/store/index.js @@ -191,7 +191,7 @@ const useStore = defineStore('global', { localStorage.setItem('isDark', isDark) this.$patch({ isDark }) } - if (animate) { + if (animate && typeof document.startViewTransition === 'function') { let transition = document.startViewTransition(() => { document.documentElement.classList.toggle('dark') })