mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-29 08:34:50 +02:00
remove trailing /'s from path in nav bar
This commit is contained in:
parent
c0b03584ea
commit
63b3505763
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user