Fixes displayname on remote video on FF. Seems innerText is not working on FF, replace it with innerHTML.
This commit is contained in:
parent
dcb607a586
commit
aed2d97c10
|
@ -46,10 +46,10 @@ function createAvatar(jid) {
|
|||
function createDisplayNameParagraph(key, displayName) {
|
||||
let p = document.createElement('p');
|
||||
if (displayName) {
|
||||
p.innerText = displayName;
|
||||
p.innerHTML = displayName;
|
||||
} else if(key) {
|
||||
p.setAttribute("data-i18n",key);
|
||||
p.innerText = APP.translation.translateString(key);
|
||||
p.innerHTML = APP.translation.translateString(key);
|
||||
}
|
||||
|
||||
return p;
|
||||
|
|
|
@ -404,13 +404,11 @@ RemoteVideo.prototype.setDisplayName = function(displayName, key) {
|
|||
nameSpan.className = 'displayname';
|
||||
$('#' + this.videoSpanId)[0].appendChild(nameSpan);
|
||||
|
||||
|
||||
if (displayName && displayName.length > 0) {
|
||||
nameSpan.innerText = displayName;
|
||||
nameSpan.innerHTML = displayName;
|
||||
}
|
||||
else
|
||||
nameSpan.innerText = interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME;
|
||||
|
||||
nameSpan.innerHTML = interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME;
|
||||
nameSpan.id = this.videoSpanId + '_name';
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue