瀏覽代碼

chore: delay watch-for-date!

Tienson Qin 5 年之前
父節點
當前提交
b82ae3a4b5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/handler.cljs

+ 1 - 1
src/main/frontend/handler.cljs

@@ -48,7 +48,7 @@
                                      (not (seq (db/get-files config/local-repo))))
                                      (not (seq (db/get-files config/local-repo))))
                               (repo-handler/setup-local-repo-if-not-exists!)
                               (repo-handler/setup-local-repo-if-not-exists!)
                               (state/set-db-restoring! false))
                               (state/set-db-restoring! false))
-                            (watch-for-date!)
+                            (js/setTimeout watch-for-date! 10000)
                             (migration-handler/show!)
                             (migration-handler/show!)
                             (when (seq (:repos me))
                             (when (seq (:repos me))
                               ;; FIXME: handle error
                               ;; FIXME: handle error