mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 13:12:26 -06:00
small null ref fix
This commit is contained in:
parent
7d01f6fe8b
commit
d4a7718f05
|
|
@ -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")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue