Merge pull request #2199 from keepassxreboot/fix/xml_formatting

Fix XML formatting with Firefox
This commit is contained in:
Sami Vänttinen 2024-05-16 22:55:39 +03:00 committed by GitHub
commit f58a87568f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -806,6 +806,10 @@ kpxc.updateTOTPList = async function() {
// Apply a script to the page for intercepting Passkeys (WebAuthn) requests
kpxc.enablePasskeys = function() {
if (document?.documentElement?.ownerDocument?.contentType === 'text/xml') {
return;
}
const passkeys = document.createElement('script');
passkeys.src = browser.runtime.getURL('content/passkeys.js');
document.documentElement.appendChild(passkeys);