mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 23:54:55 +00:00
fix(electron): try to fix #1228
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
[cljs-time.core :as t]
|
||||
[cljs-time.format :as tf]
|
||||
[frontend.config :as config]
|
||||
["ignore" :as Ignore]
|
||||
["/frontend/utils" :as utils]))
|
||||
|
||||
(defn get-ref
|
||||
@@ -61,6 +62,13 @@
|
||||
(assoc config
|
||||
:document/mode? (state/sub [:document/mode?])))
|
||||
|
||||
(defn ignore-files
|
||||
[pattern paths]
|
||||
(-> (Ignore)
|
||||
(.add pattern)
|
||||
(.filter (bean/->js paths))
|
||||
(bean/->clj)))
|
||||
|
||||
(comment
|
||||
(let [repo (state/get-current-repo)]
|
||||
(p/let [remote-oid (get-remote-ref repo)
|
||||
|
||||
Reference in New Issue
Block a user