mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Fixed race condition in latest firmware
This commit is contained in:
parent
78163214eb
commit
6653acdbbc
@ -256,7 +256,7 @@ registerController('PapersController', ['$api', '$scope', '$sce', '$http', funct
|
||||
params: {cert,type}
|
||||
},function(response) {
|
||||
$scope.showCertThrobber = false;
|
||||
if (response.success === true) {
|
||||
if (response.error === "HTTP Error") {
|
||||
// Redirect if key type is TLS/SSL
|
||||
if (type == "TLS/SSL") {
|
||||
$scope.redirect("https");
|
||||
@ -302,7 +302,7 @@ registerController('PapersController', ['$api', '$scope', '$sce', '$http', funct
|
||||
$scope.showRemoveSSLButton = true;
|
||||
$scope.refresh();
|
||||
|
||||
if (response.success === true) {
|
||||
if (response.error === "HTTP Error") {
|
||||
$scope.redirect("http");
|
||||
} else {
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user