#38 Fix innerHTML Warning when replacing Anime title

This commit is contained in:
Serraniel 2020-09-11 19:33:34 +02:00
parent d27e1c75e6
commit b4d6a886fe
Signed by: Serraniel
GPG key ID: 3690B4E7364525D3

View file

@ -65,7 +65,10 @@ function removeUnknownUsers(node) {
let profileData = upperDiv.innerHTML;
// exchange data
upperDiv.innerHTML = `<b>${anime}</b>`;
let bElement = document.createElement('b');
bElement.textContent = anime;
upperDiv.innerHTML = ``;
upperDiv.appendChild(bElement);
// add user note if own request
if (profileLink.length > 0) {