1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-16 18:01:37 +00:00

perf(js): don't load webauthn,js when disabled

This saves around 1kB of data, yay.
This commit is contained in:
Julien Voisin 2025-08-16 02:11:12 +02:00 committed by GitHub
parent 6f2ec8b3e9
commit 3955df43f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

View file

@ -1114,6 +1114,7 @@ function initializeServiceWorker() {
* Initialize WebAuthn handlers if supported.
*/
function initializeWebAuthn() {
if (typeof WebAuthnHandler !== 'function') return;
if (!WebAuthnHandler.isWebAuthnSupported()) return;
const webauthnHandler = new WebAuthnHandler();