Skip to content

Commit

Permalink
Use main document to create viewport element
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyriar committed Aug 5, 2024
1 parent cb3bd46 commit abe0640
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 abe0640

Please sign in to comment.