mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 01:16:27 +00:00
fix: search namespace pages
This commit is contained in:
@@ -49,15 +49,6 @@
|
||||
(medley/find-first #(= name (:name (second %1)))
|
||||
(medley/indexed alias-dirs))))
|
||||
|
||||
(defn- convert-platform-protocol
|
||||
[full-path]
|
||||
|
||||
(cond-> full-path
|
||||
(and (string? full-path)
|
||||
(mobile-util/native-platform?))
|
||||
(string/replace-first
|
||||
#"^(file://|assets://)" common-config/capacitor-protocol-with-prefix)))
|
||||
|
||||
(defn resolve-asset-real-path-url
|
||||
[repo rpath]
|
||||
(when-let [rpath (and (string? rpath)
|
||||
@@ -86,7 +77,7 @@
|
||||
(if has-schema?
|
||||
(path/path-join graph-root rpath)
|
||||
(path/prepend-protocol "file:" (path/path-join graph-root rpath)))))]
|
||||
(convert-platform-protocol ret)))))
|
||||
ret))))
|
||||
|
||||
(defn normalize-asset-resource-url
|
||||
"try to convert resource file to url asset link"
|
||||
|
||||
Reference in New Issue
Block a user