Skip to content

Commit

Permalink
Avoid innerHTML (#106395)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrmarti committed Sep 10, 2020
1 parent 01b1902 commit 7651656
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/base/parts/quickinput/browser/quickInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1692,8 +1692,8 @@ export class QuickInputController extends Disposable {
content.push(`.quick-input-list .quick-input-list-separator { color: ${this.styles.list.pickerGroupForeground}; }`);
}
const newStyles = content.join('\n');
if (newStyles !== this.ui.styleSheet.innerHTML) {
this.ui.styleSheet.innerHTML = newStyles;
if (newStyles !== this.ui.styleSheet.textContent) {
this.ui.styleSheet.textContent = newStyles;
}
}
}
Expand Down

0 comments on commit 7651656

Please sign in to comment.