dont fail if pandora.user.ui.hash is not set

This commit is contained in:
j 2013-03-05 09:06:35 +00:00
parent e706fbfb9b
commit f6fa94189c

View file

@ -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;