Skip to content

Commit

Permalink
Fixes #11464, inform developer if blank.html needs to be on a local p…
Browse files Browse the repository at this point in the history
…ath for xdomain use of dojo.hash.
  • Loading branch information
jrburke committed Jul 20, 2010
1 parent bd793da commit 1810392
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ dojo.provide("dojo.hash");
var ifr = document.createElement("iframe"),
IFRAME_ID = "dojo-hash-iframe",
ifrSrc = dojo.config.dojoBlankHtmlUrl || dojo.moduleUrl("dojo", "resources/blank.html");

if(dojo.config.useXDomain && !dojo.config.dojoBlankHtmlUrl){
console.warn("dojo.hash: When using cross-domain Dojo builds,"
+ " please save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl"
+ " to the path on your domain to blank.html");
}

ifr.id = IFRAME_ID;
ifr.src = ifrSrc + "?" + _getHash();
ifr.style.display = "none";
Expand Down

0 comments on commit 1810392

Please sign in to comment.