Skip to content

Specify window consistently with matchMedia calls in browser.ts#164020

Merged
deepak1556 merged 2 commits intomicrosoft:mainfrom
a-stewart:specify-window-with-matchMedia
Dec 14, 2022
Merged

Specify window consistently with matchMedia calls in browser.ts#164020
deepak1556 merged 2 commits intomicrosoft:mainfrom
a-stewart:specify-window-with-matchMedia

Conversation

@a-stewart
Copy link
Contributor

In browser.ts, calls to matchMedia are done as window.matchMedia(...) in 4 locations and just matchMedia(...) in one remaining location.

This PR updates the fifth location to be consistent with the others.

We are currently patching this in our fork due to an issue with our compiler - but since I think it improves the consistency of the file, it would also be an improvement here too.

@alexdima alexdima added this to the January 2023 milestone Dec 14, 2022
@deepak1556 deepak1556 merged commit 682e3d2 into microsoft:main Dec 14, 2022
Kalmaegi pushed a commit to Kalmaegi/vscode that referenced this pull request Dec 15, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants