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:
parent
4108d1a0e8
commit
932ec56079
2 changed files with 12 additions and 5 deletions
|
@ -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;
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue