rename css, fix background color getting applied
This commit is contained in:
+3
-1
@@ -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';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user