Rename electron window title
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user