From f6fa94189c5daf6f1bece51dfae2a2e0e0ded77c Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 5 Mar 2013 09:06:35 +0000 Subject: [PATCH] dont fail if pandora.user.ui.hash is not set --- static/js/pandora/URL.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index 2133daaa..d8f5ea4e 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -58,7 +58,10 @@ pandora.URL = (function() { } - if (pandora.user.ui.hash.anchor || !Ox.isEmpty(pandora.user.ui.hash.query)) { + if ( + pandora.user.ui.hash && + (pandora.user.ui.hash.anchor || !Ox.isEmpty(pandora.user.ui.hash.query)) + ) { state.hash = {}; if (pandora.user.ui.hash.anchor) { state.hash.anchor = pandora.user.ui.hash.anchor;