mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
dodge firefox race (thx exci)
This commit is contained in:
parent
8fcb2d1554
commit
3a7b43c663
|
@ -876,14 +876,18 @@ function scfg_bind(obj, oname, cname, defval, cb) {
|
|||
|
||||
function hist_push(url) {
|
||||
console.log("h-push " + url);
|
||||
if (window.history && history.pushState)
|
||||
try {
|
||||
history.pushState(url, url, url);
|
||||
}
|
||||
catch (ex) { }
|
||||
}
|
||||
|
||||
function hist_replace(url) {
|
||||
console.log("h-repl " + url);
|
||||
if (window.history && history.replaceState)
|
||||
try {
|
||||
history.replaceState(url, url, url);
|
||||
}
|
||||
catch (ex) { } // ff "The operation is insecure." on rapid switches
|
||||
}
|
||||
|
||||
function sethash(hv) {
|
||||
|
|
Loading…
Reference in a new issue