From 66162ef4d101ad54badc804893c15739a252a71b Mon Sep 17 00:00:00 2001 From: 0neGal Date: Sat, 23 Apr 2022 01:01:55 +0200 Subject: prereleases no longer show up in the release notes --- src/app/launcher.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app') diff --git a/src/app/launcher.js b/src/app/launcher.js index e0d7619..7b49dc4 100644 --- a/src/app/launcher.js +++ b/src/app/launcher.js @@ -25,6 +25,8 @@ ipcRenderer.on("vp-notes", (event, response) => { let content = ""; for (const release of response) { + if (release.prerelease) {continue} + content += "# " + release.name + "\n\n" + release.body.replaceAll("\r\n", "\n") + "\n\n\n"; } @@ -42,6 +44,8 @@ ipcRenderer.on("ns-notes", (event, response) => { let content = ""; for (let release of response) { + if (release.prerelease) {continue} + content += "# " + release.name + "\n\n" + release.body.replaceAll("\r\n", "\nhtmlbreak") + "\n\n\n"; } -- cgit v1.2.3