chore: cleanup fixme

This commit is contained in:
Andelf
2023-03-27 23:08:37 +08:00
parent 8aa1802c3e
commit 113715c8a1
2 changed files with 3 additions and 6 deletions

View File

@@ -21,8 +21,7 @@
[promesa.core :as p]
[reitit.frontend.easy :as rfe]
[rum.core :as rum]
[logseq.common.path :as path]
[frontend.handler.global-config :as global-config-handler]))
[logseq.common.path :as path]))
(defn- get-path
[state]
@@ -136,8 +135,7 @@
(cond
;; image type
(and format (contains? (gp-config/img-formats) format))
;; FIXME(andelf): bad path op
[:img {:src (util/node-path.join "file://" path)}]
[:img {:src (path/path-join "file://" path)}]
(and format
(contains? (gp-config/text-formats) format)