diff options
author | brantje <brantje@gmail.com> | 2016-10-10 22:41:15 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2016-10-12 18:56:44 +0300 |
commit | b3352d1190086f87aeda7ad50c8552e4a9a6e09a (patch) | |
tree | af9dea7110bd2b5f42b68d44e3081cd4cc431ce9 /js | |
parent | 7d7f9e68001c1519101a3baee84cc0c535e8edac (diff) |
Hide http warning on localhost
Diffstat (limited to 'js')
-rw-r--r-- | js/app/controllers/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |