File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ async function main(): Promise<number | undefined> {
147147 let haveDeploy = false ;
148148 let expectedDeployDir = sc ? "../element-web/webapp" : path . join ( deployDir , path . basename ( filename ) . replace ( / \. t a r \. g z / , '' ) ) ;
149149 try {
150- await fs . opendirSync ( expectedDeployDir ) ;
150+ await fs . opendir ( expectedDeployDir ) ;
151151 console . log ( expectedDeployDir + "already exists" ) ;
152152 haveDeploy = true ;
153153 } catch ( e ) {
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ function toggleWin(): void {
4646}
4747
4848const showWin = function ( ) {
49- if ( global . mainWindow . isMinimized ( ) ) global . mainWindow . restore ( ) ;
50- if ( ! global . mainWindow . isVisible ( ) ) global . mainWindow . show ( ) ;
51- global . mainWindow . focus ( ) ;
49+ if ( global . mainWindow ? .isMinimized ( ) ) global . mainWindow . restore ( ) ;
50+ if ( ! global . mainWindow ? .isVisible ( ) ) global . mainWindow ? .show ( ) ;
51+ global . mainWindow ? .focus ( ) ;
5252} ;
5353
5454const hideWin = function ( ) {
55- global . mainWindow . hide ( ) ;
55+ global . mainWindow ? .hide ( ) ;
5656} ;
5757
5858interface IConfig {
You can’t perform that action at this time.
0 commit comments