aboutsummaryrefslogtreecommitdiff
path: root/src/app/js/launcher.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-06-08 18:02:48 +0200
committer0neGal <mail@0negal.com>2024-06-08 18:02:48 +0200
commitdbd8c6b152acc1188d2edd288488aa2da8f6310b (patch)
treeef5a1752e845a274c889ee18207c3a25e8290b23 /src/app/js/launcher.js
parent3904a4492f72ef9a9fd531c0b81f3711541c97e0 (diff)
downloadViper-dbd8c6b152acc1188d2edd288488aa2da8f6310b.tar.gz
Viper-dbd8c6b152acc1188d2edd288488aa2da8f6310b.zip
initial commit to better modularize frontend
Far from done, but this pretty much splits everything inside `src/app/main.js` into separate files.
Diffstat (limited to 'src/app/js/launcher.js')
-rw-r--r--src/app/js/launcher.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/app/js/launcher.js b/src/app/js/launcher.js
index 1c383b4..6fe1686 100644
--- a/src/app/js/launcher.js
+++ b/src/app/js/launcher.js
@@ -4,8 +4,7 @@ var servercount;
var playercount;
var masterserver;
-// Changes the main page
-// This is the tabs in the sidebar
+// changes the main page, this is the tabs in the sidebar
function page(page) {
let btns = document.querySelectorAll(".gamesContainer button");
let pages = document.querySelectorAll(".mainContainer .contentContainer");
@@ -71,7 +70,7 @@ let set_error_content = (div, lang_key) => {
"</div>";
}
-// Updates the Viper release notes
+// updates the Viper release notes
ipcRenderer.on("vp-notes", (event, response) => {
if (! response) {
return set_error_content(
@@ -83,7 +82,7 @@ ipcRenderer.on("vp-notes", (event, response) => {
vpReleaseNotes.innerHTML = formatRelease(response);
});
-// Updates the Northstar release notes
+// updates the Northstar release notes
ipcRenderer.on("ns-notes", (event, response) => {
if (! response) {
return set_error_content(
@@ -208,7 +207,7 @@ async function loadServers() {
}
}; loadServers()
-// Refreshes every 5 minutes
+// refreshes every 5 minutes
setInterval(() => {
loadServers();
}, 300000)