From b4d6a886fed3d025c7eae7ddc7249b3da2679eff Mon Sep 17 00:00:00 2001 From: Serraniel Date: Fri, 11 Sep 2020 19:33:34 +0200 Subject: [PATCH] #38 Fix innerHTML Warning when replacing Anime title --- src/javascript/enhancements/animeRequests.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/javascript/enhancements/animeRequests.js b/src/javascript/enhancements/animeRequests.js index 8bf5ade..82ba7a0 100644 --- a/src/javascript/enhancements/animeRequests.js +++ b/src/javascript/enhancements/animeRequests.js @@ -65,7 +65,10 @@ function removeUnknownUsers(node) { let profileData = upperDiv.innerHTML; // exchange data - upperDiv.innerHTML = `${anime}`; + let bElement = document.createElement('b'); + bElement.textContent = anime; + upperDiv.innerHTML = ``; + upperDiv.appendChild(bElement); // add user note if own request if (profileLink.length > 0) {