Skip to content

Commit

Permalink
Added a feature test to see matchMedia is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
yoavweiss committed Mar 29, 2013
1 parent 3e874be commit 3d5f9ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hinclude.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ var hinclude;
},

include: function (element, url, media, incl_cb) {
if(media && !window.matchMedia(media).matches){
if(media && window.matchMedia && !window.matchMedia(media).matches){
return;
}
var scheme = url.substring(0, url.indexOf(":"));
Expand Down

0 comments on commit 3d5f9ba

Please sign in to comment.