aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-09-11 23:10:41 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-09-11 23:10:41 -0400
commitef205626e4e17f4982fff5d03e9f4b01f9f38fac (patch)
tree88a1757d224b54553f737500b7253ccf19f02e21 /web/js
parentStore ratio for determining stretch direction. (diff)
downloadPhotoFloat-ef205626e4e17f4982fff5d03e9f4b01f9f38fac.tar.xz
PhotoFloat-ef205626e4e17f4982fff5d03e9f4b01f9f38fac.zip
Work around google+'s bug where they link to the escaped_fragment URL.
Diffstat (limited to 'web/js')
-rw-r--r--web/js/011-display.js4
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();