mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-03 13:33:18 +00:00
fixed releaseName undefined error
This commit is contained in:
@@ -26,9 +26,9 @@ function appUpdater() {
|
||||
|
||||
// Ask the user if update is available
|
||||
autoUpdater.on('update-downloaded', (event, info) => {
|
||||
let message = app.getName() + ' ' + releaseName + ' is now available. It will be installed the next time you restart the application.';
|
||||
if (releaseNotes) {
|
||||
const splitNotes = releaseNotes.split(/[^\r]\n/);
|
||||
let message = app.getName() + ' ' + info.releaseName + ' is now available. It will be installed the next time you restart the application.';
|
||||
if (info.releaseNotes) {
|
||||
const splitNotes = info.releaseNotes.split(/[^\r]\n/);
|
||||
message += '\n\nRelease notes:\n';
|
||||
splitNotes.forEach(notes => {
|
||||
message += notes + '\n\n';
|
||||
|
||||
Reference in New Issue
Block a user