Skip to content

Commit

Permalink
Merge pull request #178 from seanxiesx/master
Browse files Browse the repository at this point in the history
Added support for protocol-relative URLs in CSS file references in cross-domain JS.
  • Loading branch information
jefflembeck committed Nov 21, 2013
2 parents a31e9e5 + c9c52f3 commit 06117cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cross-domain/respond.proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@

var thislink = links[i],
href = links[i].href,
extreg = (/^([a-zA-Z]+?:(\/\/)?(www\.)?)/).test( href ),
extreg = (/^([a-zA-Z:]*\/\/(www\.)?)/).test( href ),
ext = (baseElem && !extreg) || extreg;

//make sure it's an external stylesheet
Expand All @@ -124,4 +124,4 @@
buildUrls();
}

})( window, document );
})( window, document );

0 comments on commit 06117cb

Please sign in to comment.