Skip to content

Commit

Permalink
Merge pull request #215 from nextcloud/fix/208-bug-link-share-does-no…
Browse files Browse the repository at this point in the history
…t-respect-system-dark-mode

fix: use system theme if no ncTheme available
  • Loading branch information
juliusknorr authored Oct 10, 2024
2 parents de73f23 + ef6aff9 commit 7f367e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function App({
const ncThemes = document.body.dataset?.themes
return (
(window.matchMedia('(prefers-color-scheme: dark)').matches
&& ncThemes?.indexOf('light') === -1)
&& (ncThemes === undefined || ncThemes?.indexOf('light') === -1))
|| ncThemes?.indexOf('dark') > -1
)
}
Expand Down

0 comments on commit 7f367e3

Please sign in to comment.