mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 15:23:03 +08:00
* fix: #1418 * Remove debug code
This commit is contained in:
parent
344df06d58
commit
6d2d0fabe0
@ -134,7 +134,8 @@ class Watcher {
|
||||
|
||||
// Watch a file or directory and return a unwatch function.
|
||||
watch (win, watchPath, type = 'dir'/* file or dir */) {
|
||||
const usePolling = this._preferences.getItem('watcherUsePolling')
|
||||
// TODO: Is it needed to set `watcherUsePolling` ? because macOS need to set to true.
|
||||
const usePolling = isOsx ? true : this._preferences.getItem('watcherUsePolling')
|
||||
|
||||
const id = getUniqueId()
|
||||
const watcher = chokidar.watch(watchPath, {
|
||||
|
Loading…
Reference in New Issue
Block a user