Now it builds

This commit is contained in:
2023-08-06 10:37:45 +02:00
parent b7d38af0d3
commit 6d2ede1445
5 changed files with 14 additions and 2 deletions

View File

@ -669,7 +669,7 @@ export class Editor {
flashBackground(color: string, duration: number): void {
// Set the flashing color
this.view.dom.style.backgroundColor = color;
const gutters = this.view.dom.getElementsByClassName("cm-gutter");
const gutters = this.view.dom.getElementsByClassName("cm-gutter") as HTMLCollectionOf<HTMLElement>;
Array.from(gutters).forEach(gutter => gutter.style.backgroundColor = color);
// Reset to original color after duration