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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/login.js')
-rw-r--r--core/src/login.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/login.js b/core/src/login.js
index c496c7476cf..9a2507e4798 100644
--- a/core/src/login.js
+++ b/core/src/login.js
@@ -71,6 +71,7 @@ new View({
hasPasswordless: fromStateOr('webauthn-available', false),
countAlternativeLogins: fromStateOr('countAlternativeLogins', false),
isHttps: window.location.protocol === 'https:',
+ isLocalhost: window.location.hostname === 'localhost',
hasPublicKeyCredential: typeof (window.PublicKeyCredential) !== 'undefined',
hideLoginForm: fromStateOr('hideLoginForm', false),
},