empty elements with textContent

This commit is contained in:
Jeremy Schomery 2017-07-19 12:49:15 +04:30 committed by tophf
parent eeb826ee97
commit 7c8dbfc3a4
2 changed files with 2 additions and 2 deletions

View File

@ -1963,7 +1963,7 @@ function showHelp(title, text) {
((e.keyCode || e.which) === 27 && !e.altKey && !e.ctrlKey && !e.shiftKey && !e.metaKey)
) {
div.style.display = '';
document.querySelector('.contents').innerHTML = '';
document.querySelector('.contents').textContent = '';
document.removeEventListener('keydown', closeHelp);
}
}

View File

@ -519,7 +519,7 @@ function switchUI({styleOnly} = {}) {
const missingFavicons = newUI.enabled && newUI.favicons && !$('.applies-to img');
if (changed.enabled || (missingFavicons && !createStyleElement.parts)) {
installed.innerHTML = '';
installed.textContent = '';
getStylesSafe().then(showStyles);
return;
}