fix: typo

This commit is contained in:
Tienson Qin
2022-11-07 21:03:58 +08:00
parent 02dfb9ede5
commit 081e04ff2e
2 changed files with 3 additions and 2 deletions

View File

@@ -570,7 +570,8 @@
(let [type (.-event event)
payload (-> event
(js->clj :keywordize-keys true)
(update :path capacitor-fs/remove-private-part))]
(update :path (fn [path]
(when (string? path) (capacitor-fs/remove-private-part path)))))]
(fs-watcher/handle-changed! type payload)
(when (file-sync-handler/enable-sync?)
(sync/file-watch-handler type payload))))