You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
The MediaQueryList patch doesn't work in Safari. MediaQueryList is not available on the global scope.
I saw that addListener wasn't patched because the console didn't show zone.js as source like the other patched methods
You receive an instance of MediaQueryList when doing matchMedia('')
Sadly for whatever reason the constructor is Object :(. So I'm not sure how to access the prototype. Using __proto__ is not really the way to go, isn't it?
I guess you'd have to patch addListener and removeListener on each matchMedia(...) call, if MediaQueryList isn't public.
Environment
Safari Technology Preview (desktop) Release 47
Safari (desktop) version 11.0.2
Platform: macOS 10.13.2
The text was updated successfully, but these errors were encountered:
The MediaQueryList patch doesn't work in Safari.
MediaQueryList
is not available on the global scope.I saw that
addListener
wasn't patched because the console didn't show zone.js as source like the other patched methodsYou receive an instance of
MediaQueryList
when doingmatchMedia('')
Sadly for whatever reason the
constructor
isObject
:(. So I'm not sure how to access the prototype. Using__proto__
is not really the way to go, isn't it?I guess you'd have to patch
addListener
andremoveListener
on eachmatchMedia(...)
call, ifMediaQueryList
isn't public.Environment
The text was updated successfully, but these errors were encountered: