Skip to content

Commit 3417970

Browse files
committed
fix: update modal message so it displays correctly
- Fixed a case where update modal message would say undefined
1 parent 1319531 commit 3417970

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fragfinder",
33
"productName": "Fragfinder",
4-
"version": "2.0.1",
4+
"version": "2.0.2",
55
"description": "Electron App",
66
"main": "src/main.js",
77
"scripts": {

src/main.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,11 +680,10 @@ ipcMain.on("setSteamId", (event, { steamid, previewMode }) => {
680680
});
681681

682682
/* Showing dialog box when an update is available. */
683-
autoUpdater.on("update-available", (_event, releaseNotes, releaseName) => {
683+
autoUpdater.on("update-available", () => {
684684
createCustomModal({
685685
title: "Application Update",
686-
message: process.platform === "win32" ? releaseNotes : releaseName,
687-
detail:
686+
message:
688687
"A new version is being downloaded in the background and will automatically close the app when it's done.",
689688
buttons: ["Ok"],
690689
});

0 commit comments

Comments
 (0)