aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-04-23 01:01:55 +0200
committer0neGal <mail@0negal.com>2022-04-23 01:02:32 +0200
commit66162ef4d101ad54badc804893c15739a252a71b (patch)
tree1b598a2d2a63f42ed64fb8030480720762eb566d /src
parent9ae7cc35744b3aa032dc20efeb1b4df463ceb7ab (diff)
downloadViper-66162ef4d101ad54badc804893c15739a252a71b.tar.gz
Viper-66162ef4d101ad54badc804893c15739a252a71b.zip
prereleases no longer show up in the release notes
Diffstat (limited to 'src')
-rw-r--r--src/app/launcher.js4
1 files changed, 4 insertions, 0 deletions
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";
}