Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 8f5330e

Browse files
authored
Add (<any>window) before matchMedia
1 parent 7311f99 commit 8f5330e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/media-query/match-media.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export class MatchMedia {
119119
protected _buildMQL(query: string): MediaQueryList {
120120
let canListen = isBrowser() && !!(<any>window).matchMedia('all').addListener;
121121

122-
return canListen ? matchMedia(query) : <MediaQueryList>{
122+
return canListen ? (<any>window).matchMedia(query) : <MediaQueryList>{
123123
matches: query === 'all' || query === '',
124124
media: query,
125125
addListener: () => {

0 commit comments

Comments
 (0)