dont set empty document.location.hash, causes # to show up in Firefox, fixes #1870

This commit is contained in:
j 2014-01-22 12:25:17 +00:00
parent 00da62ba17
commit a7e87647e0

View file

@ -32,12 +32,14 @@ appPanel
}; };
// handle legacy embed and print URLs // handle legacy embed and print URLs
if ( document.location.hash) {
document.location.hash = document.location.hash.replace( document.location.hash = document.location.hash.replace(
/^#\?(embed|print)=true(&)?/, /^#\?(embed|print)=true(&)?/,
function() { function() {
return '#' + arguments[1] + (arguments[2] ? '?' : ''); return '#' + arguments[1] + (arguments[2] ? '?' : '');
} }
); );
}
var animationInterval, var animationInterval,
enableDebugMode = getLocalStorage('pandora.enableDebugMode'), enableDebugMode = getLocalStorage('pandora.enableDebugMode'),