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 was 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.