mirror of
https://github.com/OpenFusionProject/Client.git
synced 2025-09-26 12:50:05 +00:00
Fix bug in WebPlayer installation logic
Also run prettier
This commit is contained in:
@@ -26,20 +26,20 @@ function disableServerListButtons() {
|
||||
}
|
||||
|
||||
function getAppVersion() {
|
||||
appversion = remote.require("app").getVersion();
|
||||
|
||||
// simplify version, ex. 1.4.0 -> 1.4,
|
||||
// but only if a revision number isn't present
|
||||
if(appversion.endsWith(".0")){
|
||||
return appversion.substr(0, appversion.length - 2)
|
||||
} else {
|
||||
return appversion
|
||||
}
|
||||
appversion = remote.require("app").getVersion();
|
||||
|
||||
// simplify version, ex. 1.4.0 -> 1.4,
|
||||
// but only if a revision number isn't present
|
||||
if (appversion.endsWith(".0")) {
|
||||
return appversion.substr(0, appversion.length - 2);
|
||||
} else {
|
||||
return appversion;
|
||||
}
|
||||
}
|
||||
|
||||
function setAppVersionText() {
|
||||
$("#of-aboutversionnumber").text("Version " + getAppVersion());
|
||||
$("#of-versionnumber").text("v" + getAppVersion());
|
||||
$("#of-aboutversionnumber").text("Version " + getAppVersion());
|
||||
$("#of-versionnumber").text("v" + getAppVersion());
|
||||
}
|
||||
|
||||
function addServer() {
|
||||
|
Reference in New Issue
Block a user