My web application uses matchMedia. Sometimes call of this function returns null no matter what value is passed. It is strange but it happens not always (maybe 1 of 3 times) and only in FireFox with opened FireBug. Did anybody face with such issue ?
My web application uses matchMedia . Sometimes call of this function returns null no
Share
It seems that matchMedia() returns null in FF when it’s called in a hidden (display: none) iframe.
I’ve encountered this behavior when I’ve used jQuery UI’s tabs widget, and the tab panels were iframes. My workaround was to override the jQuery UI’s .ui-tabs-hide CSS class: