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