From d4a7718f050b2d81f8b2ee9c5dbad28f79af2cbc Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Wed, 3 Jun 2026 21:54:19 +0200 Subject: [PATCH] small null ref fix --- copyparty/web/browser.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index 2f53ede9..2893f4a9 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -928,7 +928,8 @@ function mktemp(is_dir) { sendit(input.value); // Chrome blurs elements when calling remove for some reason input.onblur = null; - row.remove(); + if(row) + row.remove(); }; input.onkeydown = function(e) { if (e.key == "Enter")