mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 05:23:06 +00:00
fix(Utils): in encodeUrisToQmlFormat, use correct variables names
This commit is contained in:
parent
922ab78698
commit
ad73020130
1 changed files with 4 additions and 4 deletions
|
|
@ -161,14 +161,14 @@ function encodeUrisToQmlFormat (text, options) {
|
|||
var ext = getExtension(match)
|
||||
if (includes([ 'jpg', 'jpeg', 'gif', 'png', 'svg' ], ext)) {
|
||||
images += '<a href="' + match + '"><img' + (
|
||||
options.imageWidth != null
|
||||
options.imagesWidth != null
|
||||
? ' width="' + options.imagesWidth + '"'
|
||||
: ''
|
||||
) + (
|
||||
options.imageHeight != null
|
||||
options.imagesHeight != null
|
||||
? ' height="' + options.imagesHeight + '"'
|
||||
: ''
|
||||
) + 'src="' + match + '" /></a>'
|
||||
) + ' src="' + match + '" /></a>'
|
||||
}
|
||||
|
||||
return '<a href="' + match + '">' + match + '</a>'
|
||||
|
|
@ -178,7 +178,7 @@ function encodeUrisToQmlFormat (text, options) {
|
|||
images = '<div>' + images + '</div>'
|
||||
}
|
||||
|
||||
return images.concat(text)
|
||||
return images.concat('<p>' + text + '</p>')
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue