Skip to content

Commit

Permalink
Fix bug on experimental release url conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
xoriole committed Apr 22, 2024
1 parent 00f1c7b commit eaad4e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/tribler.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ $(document).ready(function () {
$("#pre_release_download_url").attr("href", pre_windows64_url);
$("#footer_download_url").attr("href", windows64_url);

if(pre_windows64_url != undefined || pre_windows32_url != undefined){
if(exp_windows64_url != undefined || exp_windows32_url != undefined){
$("#experimental_release").show();
const userAgent = navigator.userAgent;
if (userAgent.indexOf("WOW64") !== -1 || userAgent.indexOf("Win64") !== -1) {
Expand All @@ -106,7 +106,7 @@ $(document).ready(function () {
$("#pre_release_download_url").attr("href", pre_mac_url);
$("#footer_download_url").attr("href", mac_url);

if(pre_mac_url != undefined){
if(exp_mac_url != undefined){
$("#experimental_release").show();
$("#experimental_release_download_url").attr("href", exp_mac_url);
}
Expand All @@ -119,7 +119,7 @@ $(document).ready(function () {
$("#instructions").css("display", "block");
$("#instructions").attr("href", "./linux.html");

if(pre_linux_url != undefined){
if(exp_linux_url != undefined){
$("#experimental_release").show();
$("#experimental_release_download_url").attr("href", exp_linux_url);
}
Expand Down

0 comments on commit eaad4e8

Please sign in to comment.