mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-17 23:08:33 +02:00
Removed innerHTML (#116)
* Removed innerHTML * Removed innerHTML * Removed innerHTML * Removed innerHTML
This commit is contained in:
committed by
wbamberg
parent
2891f53dac
commit
6bb818e62a
@@ -14,7 +14,10 @@ function set_domain(domain) {
|
||||
}
|
||||
|
||||
function no_history(hostname) {
|
||||
document.getElementById('history').innerHTML = `No history for ${hostname}.`;
|
||||
var history_text = document.getElementById('history');
|
||||
while(history_text.firstChild)
|
||||
history_text.removeChild(history_text.firstChild);
|
||||
history_text.textContent = `No history for ${hostname}.`;
|
||||
}
|
||||
|
||||
// When the page is loaded find the current tab and then use that to query
|
||||
|
||||
Reference in New Issue
Block a user