mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-08 04:50:45 +08:00
Merge pull request #437 from nagisa77/codex/fix-night-mode-reset-on-refresh
fix: persist theme mode across refresh
This commit is contained in:
7
frontend_nuxt/plugins/theme.client.ts
Normal file
7
frontend_nuxt/plugins/theme.client.ts
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import { defineNuxtPlugin } from '#app'
|
||||||
|
import { initTheme } from '~/utils/theme'
|
||||||
|
|
||||||
|
export default defineNuxtPlugin(() => {
|
||||||
|
initTheme()
|
||||||
|
})
|
||||||
|
|
||||||
Reference in New Issue
Block a user