fix: config.edn can't be reloaded on mobile

pull/3566/head
Tienson Qin 2021-12-24 13:19:00 +08:00
parent 9c5dd154d5
commit c720de0d81
1 changed files with 5 additions and 4 deletions

View File

@ -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!