Skip to content

Commit

Permalink
fix(fs): style rel path handling
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Mar 28, 2023
1 parent 5d4dcff commit ecdb68b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/frontend/config.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,8 @@
(if (util/electron?) "assets://" "file://"))
;; BUG: use "assets" as fake current directory
assets-link-fn (fn [_]
(str (path/path-join protocol
(get-repo-dir (state/get-current-repo)) "assets"))
"/")]
(str (path/path-join protocol
(get-repo-dir (state/get-current-repo)) "assets") "/"))]
(when (not-empty source)
(string/replace source #"\.\./assets/"
assets-link-fn))))
Expand Down

0 comments on commit ecdb68b

Please sign in to comment.