fix(ios): remove private part from file watcher events

This commit is contained in:
Tienson Qin
2022-11-07 20:44:58 +08:00
parent 222ce20946
commit 02dfb9ede5
3 changed files with 22 additions and 13 deletions

View File

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