From 74fab1c53fd3850bf0fd075c93622f14ad8dbe30 Mon Sep 17 00:00:00 2001 From: ulrich Date: Wed, 06 Jan 2021 23:03:51 +0000 Subject: [PATCH] null pruefung hinzugefuegt --- web/ui/ui.js | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/web/ui/ui.js b/web/ui/ui.js index c7936e8..5ace99b 100644 --- a/web/ui/ui.js +++ b/web/ui/ui.js @@ -89,10 +89,15 @@ //console.log(parsedUrl.searchParams.get("pfad")); var wunschPfad = parsedUrl.searchParams.get("pfad"); - if(wunschPfad.length > 0) { - pfad = wunschPfad; - fm_get_list(wunschPfad); - fm_init_uploader(); + if(wunschPfad !== null) { + if(wunschPfad.length > 0) { + pfad = wunschPfad; + fm_get_list(wunschPfad); + fm_init_uploader(); + } else { + fm_get_list(''); + fm_init_uploader(); + } } else { fm_get_list(''); fm_init_uploader(); -- Gitblit v1.9.3