Skip to content

Commit

Permalink
♻️ rename window title
Browse files Browse the repository at this point in the history
  • Loading branch information
fredk3 committed Mar 27, 2024
1 parent 113fe3e commit bf9f927
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apps/desktop/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ function createWindow() {
},
});

// this is to override the title set by `./apps/web/server.js`
// so that the window will show `Explorer` instead of `next-server`
process.title = mainWindow.title;

// and load the index.html of the app.
mainWindow.loadURL(`http://localhost:${process.env.PORT}`);
mainWindow.on("closed", () => {
Expand Down

0 comments on commit bf9f927

Please sign in to comment.