From 6653acdbbc747cac492087d9f700ca4373b66c6a Mon Sep 17 00:00:00 2001 From: sud0nick Date: Sat, 6 Jan 2018 13:17:51 -0500 Subject: [PATCH] Fixed race condition in latest firmware --- Papers/js/module.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Papers/js/module.js b/Papers/js/module.js index b93f7a7..3d8d094 100755 --- a/Papers/js/module.js +++ b/Papers/js/module.js @@ -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 { }