Merge pull request #3374 from logseq/enhance/mobile

Support photo upload/undo on mobile
This commit is contained in:
Tienson Qin
2021-12-16 17:24:31 +08:00
committed by GitHub
11 changed files with 183 additions and 87 deletions

View File

@@ -1594,10 +1594,14 @@
(util/electron?)
(str "assets://" repo-dir path)
(mobile/is-native-platform?)
(mobile/native-android?)
(mobile/convert-file-src
(str "file://" repo-dir path))
(mobile/native-ios?)
(mobile/convert-file-src
(str repo-dir path))
:else
(let [handle-path (str "handle" repo-dir path)
cached-url (get @*assets-url-cache (keyword handle-path))]