From 5996a58b20fa015bd404dfdb2cef8892909b3d69 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 16 Sep 2025 22:28:41 +0000 Subject: [PATCH] fix medialinks sans ls0 (closes #809); on a browser's very first visit, the first page load would not hydrate correctly, initializing msel without file-IDs, causing medialinks (#gf-0f6f5c0d) to throw an error --- copyparty/web/up2k.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/web/up2k.js b/copyparty/web/up2k.js index dc2e8243..5129f58e 100644 --- a/copyparty/web/up2k.js +++ b/copyparty/web/up2k.js @@ -3427,7 +3427,8 @@ if (QS('#op_up2k.act')) goto_up2k(); apply_perms({ "perms": perms, "frand": frand, "u2ts": u2ts }); -fileman.render(); +if (ls0) + fileman.render(); (function () {