]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blobdiff - app/js/app.js
Add upload button
[perso/Immae/Projets/Nodejs/Surfer.git] / app / js / app.js
index 10a489cce59e89af843379a2f5ffbb5ef0034c89..b71a7ede02438cd6d946d75bc1c1ef508bc3888b 100644 (file)
@@ -55,7 +55,6 @@ function loadDirectory(filePath) {
         app.entries = result.body.entries;
         app.path = filePath;
         app.pathParts = filePath.split('/').filter(function (e) { return !!e; });
-        console.log(app.pathParts)
     });
 }
 
@@ -64,7 +63,7 @@ function open(entry) {
 
     if (entry.isDirectory) return loadDirectory(path);
 
-    window.location.href = window.location.origin + path;
+    window.open(path);
 }
 
 function up() {