Skip to content

Commit

Permalink
Fix file:// protocol issue
Browse files Browse the repository at this point in the history
  • Loading branch information
padolsey committed Jan 22, 2010
1 parent b330ac3 commit 3db614a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cross-domain-ajax/jquery.xdomainajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jQuery.ajax = (function(_ajax){
var protocol = location.protocol,
hostname = location.hostname,
exRegex = RegExp(protocol + '//' + hostname),
YQL = protocol + '//query.yahooapis.com/v1/public/yql?callback=?',
YQL = 'http' + (/^https/.test(protocol)?'s':'') + '://query.yahooapis.com/v1/public/yql?callback=?',
query = 'select * from html where url="{URL}" and xpath="*"';

function isExternal(url) {
Expand Down

0 comments on commit 3db614a

Please sign in to comment.