Rename electron window title

This commit is contained in:
Farkas József
2017-02-12 23:08:36 +01:00
parent 25aa61295d
commit d51726a62f

View File

@@ -8,6 +8,7 @@ let win: Electron.BrowserWindow;
function createWindow() {
// Create the browser window.
win = new BrowserWindow({
title: 'UHK Agent',
width: 1024,
height: 768,
webPreferences: {
@@ -22,6 +23,10 @@ function createWindow() {
// and load the index.html of the app.
win.loadURL(`file://${indexPath}`);
win.on('page-title-updated', (event) => {
event.preventDefault();
});
// Emitted when the window is closed.
win.on('closed', () => {
// Dereference the window object, usually you would store windows