mirror of https://github.com/logseq/logseq
parent
d9e8ed433a
commit
2b9b9429a8
|
@ -62,7 +62,7 @@
|
|||
options (if (= fs bfs-record)
|
||||
{:encoding "utf8"}
|
||||
{})]
|
||||
(read-file dir path {})))
|
||||
(read-file dir path options)))
|
||||
([dir path options]
|
||||
(protocol/read-file (get-fs dir) dir path options)))
|
||||
|
||||
|
|
|
@ -36,9 +36,7 @@
|
|||
(subs path 1)
|
||||
path)]
|
||||
(util/p-handle
|
||||
(fs/read-file (config/get-repo-dir (state/get-current-repo))
|
||||
path
|
||||
{})
|
||||
(fs/read-file (config/get-repo-dir (state/get-current-repo)) path {})
|
||||
(fn [blob]
|
||||
(let [blob (js/Blob. (array blob) (clj->js {:type "image"}))
|
||||
img-url (image/create-object-url blob)]
|
||||
|
|
Loading…
Reference in New Issue