diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-09-11 23:10:41 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-09-11 23:10:41 -0400 |
commit | ef205626e4e17f4982fff5d03e9f4b01f9f38fac (patch) | |
tree | 88a1757d224b54553f737500b7253ccf19f02e21 /web/js/011-display.js | |
parent | Store ratio for determining stretch direction. (diff) | |
download | PhotoFloat-ef205626e4e17f4982fff5d03e9f4b01f9f38fac.tar.xz PhotoFloat-ef205626e4e17f4982fff5d03e9f4b01f9f38fac.zip |
Work around google+'s bug where they link to the escaped_fragment URL.
Diffstat (limited to 'web/js/011-display.js')
-rw-r--r-- | web/js/011-display.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/js/011-display.js b/web/js/011-display.js index cccf1fc..0971a26 100644 --- a/web/js/011-display.js +++ b/web/js/011-display.js @@ -251,6 +251,10 @@ $(document).ready(function() { $(window).hashchange(function() { $("#loading").show(); $("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); }); $(window).hashchange(); |