Permalink
Browse files

reversed order of conditions with base check, suggested by @rcdarwin. F…

…ixes #103
  • Loading branch information...
scottjehl
scottjehl committed Feb 4, 2012
1 parent fac6733 commit fd892e14bed930012073ee43860ad363acd4f778
Showing with 2 additions and 2 deletions.
  1. +1 −1 respond.min.js
  2. +1 −1 respond.src.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -77,7 +77,7 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
translate( sheet.styleSheet.rawCssText, href, media );
parsedSheets[ href ] = true;
} else {
- if( (!base && !/^([a-zA-Z:]*\/\/)/.test( href ))
+ if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base)
|| href.replace( RegExp.$1, "" ).split( "/" )[0] === win.location.host ){
requestQueue.push( {
href: href,

0 comments on commit fd892e1

Please sign in to comment.