File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ const createDownloadQueue: CreateDownloadQueue = () => {
9999 } else if ( state === 'completed' ) {
100100 if ( process . platform === 'darwin' ) {
101101 const savePath = electronDownloadItem . getSavePath ( ) ;
102- app . dock . downloadFinished ( savePath ) ;
102+ app ? .dock ? .downloadFinished ( savePath ) ;
103103 }
104104 item . win . webContents . send ( ELECTRON_EVENTS . DOWNLOAD_COMPLETED , { url : item . url } ) ;
105105 resolve ( ) ;
Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ const mainWindow = (): Promise<void> => {
307307
308308 // Prod and staging set the icon in the electron-builder config, so only update it here for dev
309309 if ( __DEV__ ) {
310- app . dock . setIcon ( `${ __dirname } /../icon-dev.png` ) ;
310+ app ? .dock ? .setIcon ( `${ __dirname } /../icon-dev.png` ) ;
311311 app . setName ( 'New Expensify Dev' ) ;
312312 }
313313
You can’t perform that action at this time.
0 commit comments