Skip to content

Commit

Permalink
Fix the dark mode on Linux and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX committed Nov 13, 2019
1 parent 74416e6 commit 081b6ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/browser.ts
Expand Up @@ -272,7 +272,7 @@ ipc.on('toggle-video-autoplay', () => {
});

function setDarkMode(): void {
if (config.get('followSystemAppearance')) {
if (is.macos && config.get('followSystemAppearance')) {
api.nativeTheme.themeSource = 'system';
} else {
api.nativeTheme.themeSource = config.get('darkMode') ? 'dark' : 'light';
Expand Down

0 comments on commit 081b6ed

Please sign in to comment.