mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
Support another vCard syntax
This commit is contained in:
parent
a630693b08
commit
d61d0873bf
2 changed files with 8 additions and 1 deletions
|
@ -5,10 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
|
## [0.15.6] - 2022-03-27
|
||||||
### Changed
|
### Changed
|
||||||
- Gitlab claims now use HTTP fetcher (thank [hosaka](https://codeberg.org/hosaka)!)
|
- Gitlab claims now use HTTP fetcher (thank [hosaka](https://codeberg.org/hosaka)!)
|
||||||
### Removed
|
### Removed
|
||||||
- Obsolete Gitlab proof fetcher
|
- Obsolete Gitlab proof fetcher
|
||||||
|
### Fixed
|
||||||
|
- Support another XMPP vCard syntax
|
||||||
|
|
||||||
## [0.15.6] - 2022-03-27
|
## [0.15.6] - 2022-03-27
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -110,7 +110,10 @@ if (jsEnv.isNode) {
|
||||||
switch (data.field.toLowerCase()) {
|
switch (data.field.toLowerCase()) {
|
||||||
case 'desc':
|
case 'desc':
|
||||||
case 'note':
|
case 'note':
|
||||||
|
vcard = dom.window.document.querySelector('note')
|
||||||
|
if (!vcard) {
|
||||||
vcard = dom.window.document.querySelector('note text')
|
vcard = dom.window.document.querySelector('note text')
|
||||||
|
}
|
||||||
if (!vcard) {
|
if (!vcard) {
|
||||||
vcard = dom.window.document.querySelector('DESC')
|
vcard = dom.window.document.querySelector('DESC')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue