Skip to content

Commit

Permalink
fix: file watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanSalt committed Jun 21, 2021
1 parent 6113340 commit 008ea25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/utils/directory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Directory {
}

watch(basename: string, updater: (event: string, filename: string) => void) {
const watcher = chokidar.watch(basename)
const watcher = chokidar.watch(this.file(basename))
try {
return watcher.on('all', debounce(updater, 500))
} catch {
Expand Down

0 comments on commit 008ea25

Please sign in to comment.