Work around google+'s bug where they link to the escaped_fragment URL.

master
Jason A. Donenfeld 2011-09-11 23:10:41 -04:00
parent 291dba972f
commit ef205626e4
1 changed files with 4 additions and 0 deletions

View File

@ -251,6 +251,10 @@ $(document).ready(function() {
$(window).hashchange(function() { $(window).hashchange(function() {
$("#loading").show(); $("#loading").show();
$("link[rel=image_src]").remove(); $("link[rel=image_src]").remove();
if (location.search.indexOf("?_escaped_fragment_=") === 0) {
location.hash = location.search.substring(20);
location.search = "";
}
photoFloat.parseHash(location.hash, hashParsed, die); photoFloat.parseHash(location.hash, hashParsed, die);
}); });
$(window).hashchange(); $(window).hashchange();