mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 06:48:37 +02:00
Changed .innerHTML to .textContent
This commit is contained in:
@@ -9,7 +9,7 @@ function get_hostname(url) {
|
||||
function set_domain(domain) {
|
||||
spans = document.getElementsByClassName('domain');
|
||||
[].slice.call(spans).forEach(function(span) {
|
||||
span.innerHTML = domain;
|
||||
span.textContent = domain;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user