summaryrefslogtreecommitdiff
path: root/pages/assets/js
diff options
context:
space:
mode:
Diffstat (limited to 'pages/assets/js')
-rw-r--r--pages/assets/js/download.js21
1 files changed, 11 insertions, 10 deletions
diff --git a/pages/assets/js/download.js b/pages/assets/js/download.js
index 38723da..9fd0d52 100644
--- a/pages/assets/js/download.js
+++ b/pages/assets/js/download.js
@@ -4,23 +4,24 @@ $(document).ready(function() {
$(".download").click(function(e) {
e.preventDefault();
download(platform);
- });
+ });
- if (["linux", "mac", "android"].indexOf(platform) != -1) {
+ if (["GNU/Linux", "macOS", "Android"].indexOf(platform) != -1) {
$(".download-text").text("Download Bitmask for " + platform);
}
});
+
function download(platform) {
var link = "install";
switch (platform) {
- case "linux":
+ case "GNU/Linux":
link = "https://dl.bitmask.net/client/linux/stable/Bitmask-linux64-latest.tar.gz";
break;
- case "mac":
+ case "macOS":
link = "https://dl.bitmask.net/client/osx/stable/Bitmask-OSX-latest.pkg";
break;
- case "android":
+ case "Android":
link = "install/android";
break;
}
@@ -29,16 +30,16 @@ function download(platform) {
function platformStr() {
if (navigator.platform.indexOf("Linux") != -1) {
- return "linux";
+ return "GNU/Linux";
}
if (navigator.platform.indexOf("Mac") != -1) {
- return "mac";
+ return "macOS";
}
if (navigator.platform.indexOf("Android") != -1) {
- return "android";
+ return "Android";
}
if (navigator.platform.indexOf("Win") != -1) {
- return "win";
+ return "Windows";
}
- return "other";
+ return "Other";
}