Skip to content

Commit

Permalink
Reduce usage of .innerHTML (#106285)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdima committed Sep 9, 2020
1 parent b1b2e09 commit 0b77007
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export abstract class AbstractTextMateService extends Disposable implements ITex
grammarFactory.setTheme(theme, tokenColorMap);
let colorMap = AbstractTextMateService._toColorMap(tokenColorMap);
let cssRules = generateTokensCSSForColorMap(colorMap);
this._styleElement.innerHTML = cssRules;
this._styleElement.textContent = cssRules;
TokenizationRegistry.setColorMap(colorMap);
}

Expand Down

0 comments on commit 0b77007

Please sign in to comment.