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
Hi!
I have started using your repository to switch between a desktop (orientation: landscape) and mobile (orientation: portrait) versions of a website. However, when using these orientation media queries, I was getting errors that I traced to the parsing of the media query in MQParser.prototype.parse in the file device.js. Apparently, using and as the criteria to split up the elements of a media query did not take into account that and is included in the word landscape. I developed a simple workaround to replace landscape with a dummy word, and I substituted landscape back again after the query was parsed. However, you may want to update the code to handle this situation in a more elegant manner. Thanks for developing this very useful capability!
The text was updated successfully, but these errors were encountered:
Hi!
I have started using your repository to switch between a desktop (
orientation: landscape
) and mobile (orientation: portrait
) versions of a website. However, when using theseorientation
media queries, I was getting errors that I traced to the parsing of the media query inMQParser.prototype.parse
in the file device.js. Apparently, usingand
as the criteria to split up the elements of a media query did not take into account thatand
is included in the wordlandscape
. I developed a simple workaround to replacelandscape
with a dummy word, and I substitutedlandscape
back again after the query was parsed. However, you may want to update the code to handle this situation in a more elegant manner. Thanks for developing this very useful capability!The text was updated successfully, but these errors were encountered: