Skip to content

Commit

Permalink
Merge pull request #5122 from Tyriar/tyriar/main_document
Browse files Browse the repository at this point in the history
Use main document to create viewport element
  • Loading branch information
Tyriar authored Aug 5, 2024
2 parents cb3bd46 + abe0640 commit c2aee5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browser/Viewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Viewport extends Disposable {
element.appendChild(this._scrollableElement.getDomNode());
this._register(toDisposable(() => this._scrollableElement.getDomNode().remove()));

this._styleElement = coreBrowserService.window.document.createElement('style');
this._styleElement = coreBrowserService.mainDocument.createElement('style');
screenElement.appendChild(this._styleElement);
this._register(toDisposable(() => this._styleElement.remove()));
this._register(Event.runAndSubscribe(themeService.onChangeColors, () => {
Expand Down

0 comments on commit c2aee5b

Please sign in to comment.