small null ref fix

This commit is contained in:
Til Schmitter 2026-06-03 21:54:19 +02:00
parent 7d01f6fe8b
commit d4a7718f05

View file

@ -928,7 +928,8 @@ function mktemp(is_dir) {
sendit(input.value); sendit(input.value);
// Chrome blurs elements when calling remove for some reason // Chrome blurs elements when calling remove for some reason
input.onblur = null; input.onblur = null;
row.remove(); if(row)
row.remove();
}; };
input.onkeydown = function(e) { input.onkeydown = function(e) {
if (e.key == "Enter") if (e.key == "Enter")