mirror of
https://github.com/logseq/logseq.git
synced 2026-05-28 14:39:48 +00:00
fix: android crash
This commit is contained in:
@@ -116,7 +116,11 @@
|
||||
;; Too dangerious!!! We'll never implement this.
|
||||
nil)
|
||||
(read-file [this dir path _options]
|
||||
(let [path (str dir path)]
|
||||
(let [path (str dir path)
|
||||
path (if (or (string/starts-with? path "file:")
|
||||
(string/starts-with? path "content:"))
|
||||
path
|
||||
(str "file:///" (string/replace path #"^/+" "")))]
|
||||
(->
|
||||
(p/let [content (.readFile Filesystem
|
||||
(clj->js
|
||||
|
||||
Reference in New Issue
Block a user