file: dedupe leading "/" when no root is set
This commit is contained in:
parent
d9c23bc672
commit
dfe45cac01
1 changed files with 1 additions and 3 deletions
|
|
@ -143,11 +143,9 @@ export default function UiFilebrowser(options, callback) {
|
|||
document.addEventListener('keydown', keyDownHandler)
|
||||
|
||||
ipc.on('listDir', (data)=>{
|
||||
|
||||
path = data.path
|
||||
root = data.root
|
||||
|
||||
ariane.textContent = path.replace(root, '/')
|
||||
ariane.textContent = root ? path.replace(root, '/') : path
|
||||
|
||||
files = data.files.filter(x=>x.folder || x.name.match(extRe))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue