Skip to content

Commit 9fa081a

Browse files
committed
not to show
1 parent 87405f9 commit 9fa081a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function createWindow () {
1212
width: 800,
1313
minWidth: 800,
1414
height: 600,
15+
show: false,
1516
title: 'Bookle - Get all paid books for free',
1617
icon: path.join(__dirname + '/public/assets/icon.png'),
1718
webPreferences: {
@@ -23,7 +24,11 @@ function createWindow () {
2324
mainWindow.loadFile('public/index.html')
2425
mainWindow.setMenu(null)
2526
// Open the DevTools.
26-
//npm mainWindow.webContents.openDevTools()
27+
//mainWindow.webContents.openDevTools()
28+
29+
mainWindow.on('ready-to-show', function(){
30+
mainWindow.show();
31+
})
2732

2833
// Emitted when the window is closed.
2934
mainWindow.on('closed', function () {

0 commit comments

Comments
 (0)