// Offer the passkey button only where the browser can do WebAuthn. // // The container is a described `RegionKind::Handover` (`crate::quasi::auth_pages`), // so its markup is the renderer's and this script cannot ship a class on it. // It states the answer as a data attribute instead and `style.css` keys the // region off that, which is the same arrangement the header's cart place uses. var passkeyLogin = document.getElementById('passkey-login'); if (window.PublicKeyCredential && passkeyLogin) { passkeyLogin.dataset.supported = 'true'; }