Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-10-10 22:41:15 +0300
committerbrantje <brantje@gmail.com>2016-10-12 18:56:44 +0300
commitb3352d1190086f87aeda7ad50c8552e4a9a6e09a (patch)
treeaf9dea7110bd2b5f42b68d44e3081cd4cc431ce9 /js
parent7d7f9e68001c1519101a3baee84cc0c535e8edac (diff)
Hide http warning on localhost
Diffstat (limited to 'js')
-rw-r--r--js/app/controllers/main.js2
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;