We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e80179 commit d8ee297Copy full SHA for d8ee297
src/cdk/layout/media-matcher.ts
@@ -20,7 +20,7 @@ export class MediaMatcher {
20
private _matchMedia: (query: string) => MediaQueryList;
21
22
constructor(private platform: Platform) {
23
- this._matchMedia = this.platform.isBrowser ?
+ this._matchMedia = this.platform.isBrowser && window.matchMedia ?
24
// matchMedia is bound to the window scope intentionally as it is an illegal invocation to
25
// call it from a different scope.
26
window.matchMedia.bind(window) :
0 commit comments