Support system theme on all platforms

This commit is contained in:
Josh Perez 2020-07-20 14:32:23 -04:00 committed by Scott Nonnenberg
parent 2529c7f9e3
commit 128859fdb7
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
function resolveTheme() {
const theme = storage.get('theme-setting') || 'system';
if (window.platform === 'darwin' && theme === 'system') {
if (theme === 'system') {
return window.systemTheme;
}
return theme;