Fix that "Electron" appears on the title bar for a while on startup.

This commit is contained in:
Yuya Ochiai 2016-05-23 23:57:46 +09:00
parent 850c642644
commit e711eb1893

View file

@ -215,7 +215,7 @@ app.on('ready', function() {
// On HiDPI Windows environment, the taskbar icon is pixelated. So this line is necessary. // On HiDPI Windows environment, the taskbar icon is pixelated. So this line is necessary.
window_options.icon = path.resolve(__dirname, 'resources/appicon.png'); window_options.icon = path.resolve(__dirname, 'resources/appicon.png');
} }
window_options.fullScreenable = true; window_options.title = app.getName();
mainWindow = new BrowserWindow(window_options); mainWindow = new BrowserWindow(window_options);
mainWindow.setFullScreenable(true); // fullscreenable option has no effect. mainWindow.setFullScreenable(true); // fullscreenable option has no effect.
if (window_options.maximized) { if (window_options.maximized) {