Removed innerHTML (#116)

* Removed innerHTML

* Removed innerHTML

* Removed innerHTML

* Removed innerHTML
This commit is contained in:
Hrishi Hiraskar
2016-10-22 21:54:33 +05:30
committed by wbamberg
parent 2891f53dac
commit 6bb818e62a
2 changed files with 6 additions and 2 deletions

View File

@@ -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