Skip to content

Commit

Permalink
Leave a ref for the nuxt color issue in plugin; can be dropped once n…
Browse files Browse the repository at this point in the history
…ot required
  • Loading branch information
dannon committed Dec 5, 2024
1 parent 545df68 commit 297bd99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/plugins/colorMode.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Forces light color mode even if localStorage already contains saved preference.
// `colorMode.preference` setting from `nuxt.config.ts` is not enough in this case.
// xref https://github.com/nuxt/ui/issues/227
export default defineNuxtPlugin((nuxtApp) => {
const colorMode = useColorMode();
nuxtApp.hook("app:mounted", () => {
Expand Down

0 comments on commit 297bd99

Please sign in to comment.