| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b5bc597 commit 63bf8a6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -98,7 +98,7 @@ class FilesWatcher extends EventEmitter { | |||
| 98 | 98 | } | |
| 99 | 99 | const watcher = watch(path, { recursive, signal: this.#signal }); | |
| 100 | 100 | watcher.on('change', (eventType, fileName) => this | |
| 101 | - .#onChange(recursive ? resolve(path, fileName) : path)); | ||
| 101 | + .#onChange(recursive ? resolve(path, fileName ?? '') : path)); | ||
| 102 | 102 | this.#watchers.set(path, { handle: watcher, recursive }); | |
| 103 | 103 | if (recursive) { | |
| 104 | 104 | this.#removeWatchedChildren(path); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments