index.ts - use null-conditional access operators

This commit is contained in:
Nicholas Bissell 2023-01-11 14:12:55 +00:00
parent 763006f06b
commit 918c588c56
No known key found for this signature in database
GPG Key ID: 6E261B2E83625970
1 changed files with 2 additions and 2 deletions

View File

@ -408,8 +408,8 @@ async function createWindow() {
// or if --hidden arg is passed
if ((generalPreferences.other.hideOnLaunch || args.hidden) && !args.show) {
mainWindow.once('show', () => {
mainWindow!.hide()
mainWindow!.setSkipTaskbar(true)
mainWindow?.hide()
mainWindow?.setSkipTaskbar(true)
})
}
} else {