summaryrefslogtreecommitdiff
path: root/web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'web/templates')
-rw-r--r--web/templates/settings.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/templates/settings.html b/web/templates/settings.html
index 0803ae3..964d319 100644
--- a/web/templates/settings.html
+++ b/web/templates/settings.html
@@ -206,6 +206,7 @@
</div>
<!-- Passkeys Section -->
+ {{if .WebAuthnEnabled}}
<div class="card" id="passkeys-card">
<div class="card-header">
<div class="card-title">Passkeys</div>
@@ -219,10 +220,12 @@
</div>
<p id="passkey-status" style="color: var(--text-secondary); font-size: 0.85em; margin-top: 8px; display: none;"></p>
</div>
+ {{end}}
<script>
(function() {
- if (!window.PublicKeyCredential) {
- document.getElementById('passkeys-card').style.display = 'none';
+ if (!document.getElementById('passkeys-card') || !window.PublicKeyCredential) {
+ var card = document.getElementById('passkeys-card');
+ if (card) card.style.display = 'none';
return;
}