mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
Add null check when calling win.webContents (#397)
This commit is contained in:
@@ -42,7 +42,7 @@ export class ElectronMainMessagingService implements MessagingService {
|
|||||||
});
|
});
|
||||||
|
|
||||||
nativeTheme.on('updated', () => {
|
nativeTheme.on('updated', () => {
|
||||||
windowMain.win.webContents.send('systemThemeUpdated', nativeTheme.shouldUseDarkColors ? 'dark' : 'light');
|
windowMain.win?.webContents.send('systemThemeUpdated', nativeTheme.shouldUseDarkColors ? 'dark' : 'light');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user