aboutsummaryrefslogtreecommitdiff
path: root/src/app
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-09-14 19:10:44 +0200
committer0neGal <mail@0negal.com>2022-09-14 19:10:44 +0200
commitd8760e60cecb51758cc32056b082c5f83886ea45 (patch)
treea6b709d604d77bad9d4911ac405f73105f5aebf7 /src/app
parent0c719656d99c69e11794b61a04e2fa31bbe5bb22 (diff)
downloadViper-d8760e60cecb51758cc32056b082c5f83886ea45.tar.gz
Viper-d8760e60cecb51758cc32056b082c5f83886ea45.zip
differentiation between update() and updatevp()
Some functions have been renamed: update() -> updateNorthstar() updatevp() -> updateViper() Overall these are far better function names...
Diffstat (limited to 'src/app')
-rw-r--r--src/app/index.html2
-rw-r--r--src/app/main.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/app/index.html b/src/app/index.html
index 819caac..1b3944d 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -220,7 +220,7 @@
<button id="playNsBtn" class="playBtn" onclick="launch()">%%gui.launch%%</button>
<div class="inline">
<div id="nsversion"></div>
- <a id="update" href="#" onclick="update()">(%%gui.update.check%%)</a>
+ <a id="update" href="#" onclick="updateNorthstar()">(%%gui.update.check%%)</a>
<div id="serverstatus" class="checking"></div>
</div>
</div>
diff --git a/src/app/main.js b/src/app/main.js
index d6a57d6..bd25071 100644
--- a/src/app/main.js
+++ b/src/app/main.js
@@ -69,7 +69,7 @@ if (!navigator.onLine) {
}
function exit() {ipcRenderer.send("exit")}
-function update() {ipcRenderer.send("update")}
+function updateNorthstar() {ipcRenderer.send("update-northstar")}
// Reports to the main process about game path status.
// @param {boolean} value is game path loaded
@@ -80,7 +80,7 @@ function setpath(value = false) {
// Tells the main process to launch or install Northstar
function launch() {
if (shouldInstallNorthstar) {
- update();
+ updateNorthstar();
shouldInstallNorthstar = false;
} else {
ipcRenderer.send("launch-ns");