We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70a3975 commit 2e56d31Copy full SHA for 2e56d31
src/vs/base/browser/ui/menu/menu.ts
@@ -229,11 +229,11 @@ export class Menu extends ActionBar {
229
private initializeStyleSheet(container: HTMLElement): void {
230
if (isInShadowDOM(container)) {
231
this.styleSheet = createStyleSheet(container);
232
- this.styleSheet.innerHTML = MENU_WIDGET_CSS;
+ this.styleSheet.textContent = MENU_WIDGET_CSS;
233
} else {
234
if (!Menu.globalStyleSheet) {
235
Menu.globalStyleSheet = createStyleSheet();
236
- Menu.globalStyleSheet.innerHTML = MENU_WIDGET_CSS;
+ Menu.globalStyleSheet.textContent = MENU_WIDGET_CSS;
237
}
238
239
this.styleSheet = Menu.globalStyleSheet;
0 commit comments