mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
prevent location being just "#"
This commit is contained in:
parent
018268df43
commit
998a9b86a3
|
|
@ -1404,7 +1404,7 @@ function hist_replace(url) {
|
|||
|
||||
function sethash(hv) {
|
||||
if (window.history && history.replaceState) {
|
||||
hist_replace(location.pathname + location.search + '#' + hv);
|
||||
hist_replace(location.pathname + location.search + (hv ? '#' : '') + hv);
|
||||
}
|
||||
else {
|
||||
location.hash = hv;
|
||||
|
|
|
|||
Loading…
Reference in a new issue