Skip to content

Commit

Permalink
Update theme-helper.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen authored Nov 16, 2024
1 parent 8b9681e commit d97c884
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ const themeHelper = new ThemeHelper();

themeHelper.onThemeChange((newTheme: Theme) => {
localStorage.setItem('theme-selection', newTheme);
}
})
```

If you want to go even further, you can store this information in a cookie to retrieve it server-side.
Expand Down

0 comments on commit d97c884

Please sign in to comment.