Browse Source

fix: video assets can not play on desktop app

fixed https://github.com/logseq/db-test/issues/398
Tienson Qin 4 tháng trước cách đây
mục cha
commit
de67a46e92
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/main/frontend/handler/assets.cljs

+ 1 - 1
src/main/frontend/handler/assets.cljs

@@ -167,7 +167,7 @@
 
         (util/electron?)
         ;; fullpath will be encoded
-        (path/prepend-protocol "assets:" full-path)
+        (path/prepend-protocol "file:" full-path)
 
         ;(mobile-util/native-platform?)
         ;(mobile-util/convert-file-src full-path)