Flipped Logic

This commit is contained in:
LAX18 Development
2022-06-06 20:05:15 -04:00
parent e0dcc26396
commit a01c13717e
+2 -2
View File
@@ -307,10 +307,10 @@ function sendCMD(cmd) {
var current_branch = output.substr(2, output.length - 3)
if (current_branch === 'unstable') {
document.getElementById("branch_name").innerHTML = "stable"
document.getElementById("branch_button").setAttribute("onclick", "changeBranch('master')")
document.getElementById("branch_button").setAttribute("onclick", "changeBranch('unstable')")
} else {
document.getElementById("branch_name").innerHTML = "unstable"
document.getElementById("branch_button").setAttribute("onclick", "changeBranch('unstable')")
document.getElementById("branch_button").setAttribute("onclick", "changeBranch('stable')")
}
}