Skip to content

Commit

Permalink
explorer: Fix TrustedTypes violation
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Sep 8, 2020
1 parent 5109695 commit 8abace1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vs/workbench/contrib/files/browser/views/explorerView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,8 @@ export class ExplorerView extends ViewPane {
}

const newStyles = content.join('\n');
if (newStyles !== this.styleElement.innerHTML) {
this.styleElement.innerHTML = newStyles;
if (newStyles !== this.styleElement.textContent) {
this.styleElement.textContent = newStyles;
}
}

Expand Down

0 comments on commit 8abace1

Please sign in to comment.