From ef1b11d43280a61e37a7c4cbab2271c61664e601 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 06 Jan 2021 23:12:22 +0000
Subject: [PATCH] aufgeraeumt

---
 web/ui/ui.js |   24 +++++++++---------------
 1 files changed, 9 insertions(+), 15 deletions(-)

diff --git a/web/ui/ui.js b/web/ui/ui.js
index c7936e8..ba1b406 100644
--- a/web/ui/ui.js
+++ b/web/ui/ui.js
@@ -82,28 +82,22 @@
   $('#logout').click(fm_logout);  
   $('#fusszeile-schliessen').on('click', fm_fusszeile_schliessen);
   fm_get_login();
-  
-  //console.log(window.location);
-  //console.log(window.location.search);
   var parsedUrl = new URL(window.location.href);
-  //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 && wunschPfad.length > 0) {
+    //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();
   }
-  /*
-  console.log('href: ' + window.location.href);
-  console.log('host: ' + window.location.host);
-  console.log('hostname: ' + window.location.hostname);
-  console.log('port: ' + window.location.port);
-  console.log('protocol: ' + window.location.protocol);
-  */
   loc = window.location.protocol + '//' + window.location.host;
 }
 

--
Gitblit v1.9.3