mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 11:16:58 +08:00

Some versions of Firefox will throw a TypeError when calling PublicKeyCredential.isConditionalMediationAvailable() because the method does not exist. That would previously lead to a "Sorry, an error has occurred." modal when trying to login. This commit fixes the issue by properly checking if the method exists. Since it only affects older Firefox versions, no tests are added.