From 8206f6a172f35ac9d1533a3c43525c4c76b6aac2 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Thu, 4 Oct 2018 15:29:24 +0100 Subject: [PATCH] tree tests --- test/tree/public/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/tree/public/index.html b/test/tree/public/index.html index 3657c63774a..cc04550a183 100644 --- a/test/tree/public/index.html +++ b/test/tree/public/index.html @@ -137,7 +137,12 @@ element, collapsible: element.type === 'dir' })); - setTimeout(() => c(els), 2500); + + if (element && /\//.test(element.path)) { + setTimeout(() => c(els), 2500); + } else { + c(els); + } } }; }); -- GitLab