Skip to content

Commit

Permalink
removed release notes as HTML (closes #8).
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasHalwax committed Aug 28, 2023
1 parent 7f6a2a5 commit 6485c7c
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/SelfUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,14 @@ SelfUpdate.prototype.checkForUpdates = function () {

const releaseName = updateInfo.releaseName ? `Release name: ${updateInfo.releaseName}` : ''

const releaseNotes = updateInfo.releaseNotes
? Array.isArray(updateInfo.releaseNotes)
? updateInfo.releaseNotes.join('\n')
: updateInfo.releaseNotes
: ''

dialog.showMessageBox({
title: 'Update available',
type: 'info',
message: `
A new version of ODINv2 is available!
Do you want to download version ${updateInfo.version}?`,
detail: `
${releaseName}
${releaseNotes}`,
detail: releaseName,
buttons: ['Download now!', 'Remind me next time please!'],
cancelId: 1
})
Expand Down

0 comments on commit 6485c7c

Please sign in to comment.