Skip to content

Commit

Permalink
reversed order of conditions with base check, suggested by @rcdarwin. F…
Browse files Browse the repository at this point in the history
…ixes #103
  • Loading branch information
scottjehl committed Feb 4, 2012
1 parent fac6733 commit fd892e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion respond.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion respond.src.js
Expand Up @@ -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,
Expand Down

0 comments on commit fd892e1

Please sign in to comment.