Skip to content

Commit

Permalink
Revert "Fix nativeTheme errors in tests on Windows 10 1809+ and Serve…
Browse files Browse the repository at this point in the history
…r 2019+"

This reverts commit b8a7c8c.
  • Loading branch information
dennisameling committed May 7, 2020
1 parent 229f944 commit e5ee873
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/src/ui/lib/theme-change-monitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,11 @@ class ThemeChangeMonitor implements IDisposable {
}

public dispose() {
if (remote.nativeTheme) {
remote.nativeTheme.removeAllListeners()
}
remote.nativeTheme.removeAllListeners()
}

private subscribe = () => {
if (!supportsDarkMode() || !remote.nativeTheme) {
if (!supportsDarkMode()) {
return
}

Expand Down

0 comments on commit e5ee873

Please sign in to comment.