In IE11 and at least one Windows 7 Mobile browser, the call to window.matchMedia("") fails with "Invalid argument" as an empty string is passed. If you pass a random suitable media selector such as "(min-height:250px)" then it does not fail.

This is fixed at www.wwoof.org.uk but broken at www.edensave.com (for now).
The error shows in the IE console - see attached photo below.
The "Mobile Menu" button does not show when the IE screen is slimmed down.

Thanks Chris

CommentFileSizeAuthor
AdaptiveThemeMatchMedia070214.png23.39 KBchriscant
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jeff Burnz’s picture

Assigned: Unassigned » Jeff Burnz
Priority: Normal » Major

Somehow this was overlooked, this need to be fixed asap.

Jeff Burnz’s picture

xenophyle’s picture

Using the most recent version of matchMedia.addListener.js fixed this for me.

It looks like this bug was fixed here:
https://github.com/paulirish/matchMedia.js/commit/b875b96d1e7dc382e916e6...

hwasem’s picture

Thank you, Xenophyle, for the link. I modified line 4 in the sites/all/themes/adaptivetheme/at_core/scripts/matchMedia.addListener.js file per your link and the "invalid argument" error is gone.

  • Jeff Burnz committed 0e9bc28 on 7.x-3.x
    Issue #2191067 by chriscant, Jeff Burnz, xenophyle: matchMedia....
Jeff Burnz’s picture

Status: Active » Fixed

OK, finally I have updated to the latest version of matchMedia.addListener.js

Sorry for the long delay and thank-you for the bug report and comments.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.