fix: Content can't read

related to #1322
pull/1347/head
Tienson Qin 2021-02-18 16:10:48 +08:00
parent d9e8ed433a
commit 2b9b9429a8
2 changed files with 2 additions and 4 deletions

View File

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

View File

@ -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)]