forked from 0x2620/pandora
dont set empty document.location.hash, causes # to show up in Firefox, fixes #1870
This commit is contained in:
parent
00da62ba17
commit
a7e87647e0
1 changed files with 8 additions and 6 deletions
|
@ -32,12 +32,14 @@ appPanel
|
||||||
};
|
};
|
||||||
|
|
||||||
// handle legacy embed and print URLs
|
// handle legacy embed and print URLs
|
||||||
document.location.hash = document.location.hash.replace(
|
if ( document.location.hash) {
|
||||||
/^#\?(embed|print)=true(&)?/,
|
document.location.hash = document.location.hash.replace(
|
||||||
function() {
|
/^#\?(embed|print)=true(&)?/,
|
||||||
return '#' + arguments[1] + (arguments[2] ? '?' : '');
|
function() {
|
||||||
}
|
return '#' + arguments[1] + (arguments[2] ? '?' : '');
|
||||||
);
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
var animationInterval,
|
var animationInterval,
|
||||||
enableDebugMode = getLocalStorage('pandora.enableDebugMode'),
|
enableDebugMode = getLocalStorage('pandora.enableDebugMode'),
|
||||||
|
|
Loading…
Reference in a new issue