Commit 1502cd95 authored by ioedeveloper's avatar ioedeveloper

Modify emitted event parameters

parent 202198a3
...@@ -219,10 +219,10 @@ export class RemixdClient extends PluginClient { ...@@ -219,10 +219,10 @@ export class RemixdClient extends PluginClient {
this.emit('changed', utils.relativePath(f, this.currentSharedFolder)) this.emit('changed', utils.relativePath(f, this.currentSharedFolder))
}) })
watcher.on('unlink', (f: string) => { watcher.on('unlink', (f: string) => {
this.emit('removed', { path: utils.relativePath(f, this.currentSharedFolder), isFolder: false }) this.emit('removed', utils.relativePath(f, this.currentSharedFolder), false)
}) })
watcher.on('unlinkDir', (f: string) => { watcher.on('unlinkDir', (f: string) => {
this.emit('removed', { path: utils.relativePath(f, this.currentSharedFolder), isFolder: true }) this.emit('removed', utils.relativePath(f, this.currentSharedFolder), true)
}) })
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment