From 85321a6f31d8c5fa4d323d6a8adfe3e0be82eaa8 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 15 Jan 2023 20:54:03 +0000 Subject: [PATCH] stale tree is better than no tree --- copyparty/web/browser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 39825ad5..1317f4c3 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -5187,7 +5187,7 @@ var treectl = (function () { function rendertree(res, ts, top0, dst, rst) { var cur = ebi('treeul').getAttribute('ts'); - if (cur && parseInt(cur) > ts) { + if (cur && parseInt(cur) > ts && QS('#treeul>li>a+a')) { console.log("reject tree"); return; } @@ -5412,7 +5412,7 @@ var treectl = (function () { for (var a = 0; a < res.dirs.length; a++) dirs.push(res.dirs[a].href.split('/')[0].split('?')[0]); - rendertree({ "a": dirs }, Date.now(), ".", get_evpath()); + rendertree({ "a": dirs }, this.ts, ".", get_evpath()); } r.gentab(this.top, res);