Browse Source

fix: set ignoreInitial to true for file watcher

Tienson Qin 4 years ago
parent
commit
3d80dc2310
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/electron/electron/handler.cljs

+ 1 - 1
src/electron/electron/handler.cljs

@@ -94,7 +94,7 @@
                                             ["." "assets" "node_modules"])
                                       (some #(string/ends-with? path (str dir "/" %))
                                             [".swap" ".crswap" ".tmp"])))
-                          ;; :ignoreInitial true
+                          :ignoreInitial true
                           :persistent true
                           :awaitWriteFinish true}))]
     (.on watcher "add"