mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Remove bad matchMedia polyfill
This commit is contained in:
@@ -1661,12 +1661,7 @@ export function getCookieValue(name: string): string | undefined {
|
||||
|
||||
export function addMatchMediaChangeListener(query: string, callback: () => void): void {
|
||||
const mediaQueryList = window.matchMedia(query);
|
||||
if (typeof mediaQueryList.addEventListener === 'function') {
|
||||
mediaQueryList.addEventListener('change', callback);
|
||||
} else {
|
||||
// Safari 13.x
|
||||
mediaQueryList.addListener(callback);
|
||||
}
|
||||
mediaQueryList.addEventListener('change', callback);
|
||||
}
|
||||
|
||||
export const enum ZIndex {
|
||||
|
||||
Reference in New Issue
Block a user