mirror of https://github.com/logseq/logseq
fix: config.edn can't be reloaded on mobile
parent
9c5dd154d5
commit
c720de0d81
|
@ -143,12 +143,13 @@
|
||||||
|
|
||||||
(defn get-files
|
(defn get-files
|
||||||
[path-or-handle ok-handler]
|
[path-or-handle ok-handler]
|
||||||
(let [record (get-record)]
|
(let [record (get-record)
|
||||||
|
electron? (util/electron?)
|
||||||
|
mobile? (mobile-util/is-native-platform?)]
|
||||||
(p/let [result (protocol/get-files record path-or-handle ok-handler)]
|
(p/let [result (protocol/get-files record path-or-handle ok-handler)]
|
||||||
(if (or (util/electron?)
|
(if (or electron? mobile?)
|
||||||
(mobile-util/is-native-platform?))
|
|
||||||
(let [result (bean/->clj result)]
|
(let [result (bean/->clj result)]
|
||||||
(rest result))
|
(if electron? (rest result) result))
|
||||||
result))))
|
result))))
|
||||||
|
|
||||||
(defn watch-dir!
|
(defn watch-dir!
|
||||||
|
|
Loading…
Reference in New Issue