From b3352d1190086f87aeda7ad50c8552e4a9a6e09a Mon Sep 17 00:00:00 2001 From: brantje Date: Mon, 10 Oct 2016 21:41:15 +0200 Subject: [PATCH] Hide http warning on localhost --- js/app/controllers/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app/controllers/main.js b/js/app/controllers/main.js index 6075abc3..bfb113b3 100644 --- a/js/app/controllers/main.js +++ b/js/app/controllers/main.js @@ -13,7 +13,7 @@ $scope.selectedVault = false; $scope.http_warning_hidden = true; - if ($location.$$protocol === 'http') { + if ($location.$$protocol === 'http' && $location.$$host !== 'localhost' && $location.$host !== '127.0.0.1') { $scope.using_http = true; $scope.http_warning_hidden = false;