Skip to content

Commit

Permalink
Changed iframe domain write lines comparison to hostname instead of h…
Browse files Browse the repository at this point in the history
…ost, in order to leave out the port from this domain comparison.
  • Loading branch information
amoslanka committed Feb 3, 2011
1 parent a774217 commit c2520b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.address.js
Expand Up @@ -137,7 +137,7 @@
_html = function() {
var src = _js() + ':' + FALSE + ';document.open();document.writeln(\'<html><head><title>' +
_d.title.replace('\'', '\\\'') + '</title><script>var ' + ID + ' = "' + encodeURIComponent(_href()) +
(_d.domain != _l.host ? '";document.domain="' + _d.domain : '') +
(_d.domain != _l.hostname ? '";document.domain="' + _d.domain : '') +
'";</' + 'script></head></html>\');document.close();';
if (_version < 7) {
_frame.src = src;
Expand Down

0 comments on commit c2520b1

Please sign in to comment.