rename css, fix background color getting applied

This commit is contained in:
meganrogge
2022-03-15 10:37:38 -04:00
parent 3e47c96445
commit 39f9c3507b
3 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -548,7 +548,9 @@ function addDecoration() {
const marker = term.addMarker(1);
const decoration = term.registerDecoration({ marker });
decoration.onRender((e) => {
e.style.backgroundColor = 'red';
if (e.classList.value === 'xterm-decoration') {
e.style.backgroundColor = 'red';
}
});
}