Skip to content

Commit

Permalink
Merge pull request scottjehl#236 from rcpeters/master
Browse files Browse the repository at this point in the history
Fix IE7 Windows Vista issue
  • Loading branch information
scottjehl committed Nov 19, 2013
2 parents 0c87b23 + ab2c5f6 commit a02e041
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion respond.src.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ window.matchMedia = window.matchMedia || (function( doc, undefined ) {



/*! Respond.js v1.3.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
/*! Respond.js v1.3.1: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */
(function( win ){

"use strict";
Expand Down Expand Up @@ -89,6 +89,9 @@ window.matchMedia = window.matchMedia || (function( doc, undefined ) {
} else {
if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base) ||
href.replace( RegExp.$1, "" ).split( "/" )[0] === win.location.host ){
// IE7 doesn't handle urls that start with '//' for ajax request
// manually add in the protocol
if ( href.substring(0,2) == "//" ) href = location.protocol + href;
requestQueue.push( {
href: href,
media: media
Expand Down

0 comments on commit a02e041

Please sign in to comment.