remote-file: add --remote-root option for security
This commit is contained in:
parent
e6394746e3
commit
03812933c5
4 changed files with 9 additions and 1 deletions
|
|
@ -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()
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue