Skip to content

Commit fd892e1

Browse files
author
scottjehl
committed
reversed order of conditions with base check, suggested by @rcdarwin. Fixes scottjehl#103
1 parent fac6733 commit fd892e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

respond.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

respond.src.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ window.matchMedia = window.matchMedia || (function(doc, undefined){
7777
translate( sheet.styleSheet.rawCssText, href, media );
7878
parsedSheets[ href ] = true;
7979
} else {
80-
if( (!base && !/^([a-zA-Z:]*\/\/)/.test( href ))
80+
if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base)
8181
|| href.replace( RegExp.$1, "" ).split( "/" )[0] === win.location.host ){
8282
requestQueue.push( {
8383
href: href,

0 commit comments

Comments
 (0)