remote-file: add --remote-root option for security

This commit is contained in:
jean-emmanuel 2019-04-04 22:31:17 +02:00
parent e6394746e3
commit 03812933c5
4 changed files with 9 additions and 1 deletions

View file

@ -70,7 +70,10 @@ $(document).ready(()=>{
browse.click(function(e){
e.preventDefault()
dialog.showOpenDialog({filters:[{name:option.file.name,extensions:option.file.extensions}]},function(file){
dialog.showOpenDialog({
filters:[{name:option.file.name,extensions:option.file.extensions}],
properties: option.file.folder ? ['openDirectory'] : ['openFile']
},function(file){
input.val(file).change()
})
})