Merge pull request #7 from 45Drives/dev-josh

remove trailing /'s from path in nav bar
This commit is contained in:
Josh Boudreau 2021-05-31 14:52:51 -03:00 committed by GitHub
commit 3c98dab171
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -973,6 +973,8 @@ class NavWindow {
nav_bar_cd() {
var new_path = document.getElementById("pwd").value;
while (new_path.charAt(new_path.length - 1) === '/' && new_path.length > 1)
new_path = new_path.substr(0, new_path.length - 1);
this.cd(new NavDir(new_path));
}