1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-04 20:46:39 +02:00

Got rid of innerHTML - part 1.

This commit is contained in:
kkapsner 2017-10-10 13:38:55 +02:00
parent 4108d1a0e8
commit 932ec56079
2 changed files with 12 additions and 5 deletions

View file

@ -84,7 +84,7 @@
node.appendChild(document.createTextNode(" ("));
var countSpan = document.createElement("span");
countSpan.className = "count";
countSpan.innerHTML = "0";
countSpan.textContent = "0";
node.appendChild(countSpan);
node.appendChild(document.createTextNode(") "));
@ -107,7 +107,7 @@
}).join("\n");
node.querySelectorAll(".count").forEach(function(countSpan){
countSpan.innerHTML = notifications.length;
countSpan.textContent = notifications.length;
});
};