File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export const createSplashScreen = async () => {
153
153
return splash ;
154
154
} ;
155
155
156
- export const createWindow = async ( splash : BrowserWindow | null ) => {
156
+ export const createWindow = async ( splash : BrowserWindow | null = null ) => {
157
157
const RESOURCES_PATH = app . isPackaged
158
158
? path . join ( process . resourcesPath , 'resources' )
159
159
: path . join ( __dirname , '../resources' ) ;
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export default class MenuBuilder {
120
120
label : 'New Window' ,
121
121
accelerator : 'Command+N' ,
122
122
click : ( ) => {
123
- createWindow ( null ) ;
123
+ createWindow ( ) ;
124
124
} ,
125
125
} ,
126
126
{
@@ -186,7 +186,7 @@ export default class MenuBuilder {
186
186
label : 'New Window' ,
187
187
accelerator : 'Ctrl+N' ,
188
188
click : ( ) => {
189
- createWindow ( null ) ;
189
+ createWindow ( ) ;
190
190
} ,
191
191
} ,
192
192
{
You can’t perform that action at this time.
0 commit comments