Skip to content

Commit f92933f

Browse files
committed
fix pr comments
1 parent d213a37 commit f92933f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

redisinsight/main.dev.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const createSplashScreen = async () => {
153153
return splash;
154154
};
155155

156-
export const createWindow = async (splash: BrowserWindow | null) => {
156+
export const createWindow = async (splash: BrowserWindow | null = null) => {
157157
const RESOURCES_PATH = app.isPackaged
158158
? path.join(process.resourcesPath, 'resources')
159159
: path.join(__dirname, '../resources');

redisinsight/menu.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default class MenuBuilder {
120120
label: 'New Window',
121121
accelerator: 'Command+N',
122122
click: () => {
123-
createWindow(null);
123+
createWindow();
124124
},
125125
},
126126
{
@@ -186,7 +186,7 @@ export default class MenuBuilder {
186186
label: 'New Window',
187187
accelerator: 'Ctrl+N',
188188
click: () => {
189-
createWindow(null);
189+
createWindow();
190190
},
191191
},
192192
{

0 commit comments

Comments
 (0)