Fixed race condition in latest firmware

pull/5/head
sud0nick 2018-01-06 13:17:51 -05:00
parent 78163214eb
commit 6653acdbbc
1 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ registerController('PapersController', ['$api', '$scope', '$sce', '$http', funct
params: {cert,type} params: {cert,type}
},function(response) { },function(response) {
$scope.showCertThrobber = false; $scope.showCertThrobber = false;
if (response.success === true) { if (response.error === "HTTP Error") {
// Redirect if key type is TLS/SSL // Redirect if key type is TLS/SSL
if (type == "TLS/SSL") { if (type == "TLS/SSL") {
$scope.redirect("https"); $scope.redirect("https");
@ -302,7 +302,7 @@ registerController('PapersController', ['$api', '$scope', '$sce', '$http', funct
$scope.showRemoveSSLButton = true; $scope.showRemoveSSLButton = true;
$scope.refresh(); $scope.refresh();
if (response.success === true) { if (response.error === "HTTP Error") {
$scope.redirect("http"); $scope.redirect("http");
} else { } else {
} }