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.
2 parents cb3bd46 + abe0640 commit c2aee5bCopy full SHA for c2aee5b
src/browser/Viewport.ts
@@ -76,7 +76,7 @@ export class Viewport extends Disposable {
76
element.appendChild(this._scrollableElement.getDomNode());
77
this._register(toDisposable(() => this._scrollableElement.getDomNode().remove()));
78
79
- this._styleElement = coreBrowserService.window.document.createElement('style');
+ this._styleElement = coreBrowserService.mainDocument.createElement('style');
80
screenElement.appendChild(this._styleElement);
81
this._register(toDisposable(() => this._styleElement.remove()));
82
this._register(Event.runAndSubscribe(themeService.onChangeColors, () => {
0 commit comments