empty elements with textContent
This commit is contained in:
parent
eeb826ee97
commit
7c8dbfc3a4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user