Merge pull request #5 from jwcorle/patch-1

Fix `deleteFile` events
This commit is contained in:
Alt 2022-09-28 22:49:13 +02:00 committed by GitHub
commit c8873968e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,6 +22,7 @@ export function fileRemovalEventToMsg({ path }) {
"jsonrpc": "2.0", "jsonrpc": "2.0",
"method": "deleteFile", "method": "deleteFile",
"params": { "params": {
"server": "home",
"filename": path, "filename": path,
}, },
"id": messageCounter++ "id": messageCounter++
@ -53,4 +54,4 @@ function addLeadingSlash(path){
return `/${path}` return `/${path}`
else else
return path return path
} }