aboutsummaryrefslogtreecommitdiff
path: root/src/app/launcher.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-01-19 23:48:14 +0100
committer0neGal <mail@0negal.com>2022-01-19 23:48:14 +0100
commitcc2fcbbdba49149724de7a07415d0dee23cc57d1 (patch)
treebdb657e0ed27fc63c028ecd4572d3bd40482e490 /src/app/launcher.js
parent45b4c015a14da3a2860a87e7b704a89110943def (diff)
downloadViper-cc2fcbbdba49149724de7a07415d0dee23cc57d1.tar.gz
Viper-cc2fcbbdba49149724de7a07415d0dee23cc57d1.zip
documented the rest of the files
Diffstat (limited to 'src/app/launcher.js')
-rw-r--r--src/app/launcher.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/launcher.js b/src/app/launcher.js
index 2c8d123..60c0d18 100644
--- a/src/app/launcher.js
+++ b/src/app/launcher.js
@@ -1,5 +1,7 @@
const markdown = require("marked").parse;
+// Changes the main page
+// This is the tabs in the sidebar
function page(page) {
let pages = document.querySelectorAll(".mainContainer .contentContainer")
let btns = document.querySelectorAll(".gamesContainer button")
@@ -18,6 +20,7 @@ function page(page) {
}; page(0)
+// Updates the Viper release notes
ipcRenderer.on("vp-notes", (event, response) => {
let content = "";
@@ -28,11 +31,13 @@ ipcRenderer.on("vp-notes", (event, response) => {
vpReleaseNotes.innerHTML = markdown(content);
});
+
async function loadVpReleases() {
ipcRenderer.send("get-vp-notes");
}; loadVpReleases();
+// Updates the Northstar release notes
ipcRenderer.on("ns-notes", (event, response) => {
let content = "";