mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
fix(fs): asset url handling
This commit is contained in:
@@ -201,6 +201,7 @@
|
||||
asset-path (gp-config/remove-asset-protocol src)]
|
||||
(if (string/blank? asset-path)
|
||||
(reset! *exist? false)
|
||||
;; FIXME(andelf): possible bug here
|
||||
(p/let [exist? (fs/file-or-href-exists? "" asset-path)]
|
||||
(reset! *exist? (boolean exist?))))
|
||||
(assoc state ::asset-path asset-path ::asset-file? true))
|
||||
|
||||
Reference in New Issue
Block a user