fix(fs/mobile): ios fs and loading fix

This commit is contained in:
Andelf
2023-03-16 13:19:07 +08:00
parent f1404fd537
commit c79c352e08
7 changed files with 39 additions and 22 deletions

View File

@@ -200,7 +200,9 @@
(if (and (gp-config/local-protocol-asset? src)
(file-sync/current-graph-sync-on?))
(let [*exist? (::exist? state)
asset-path (path/url-to-path src)]
;; special handling for asset:// protcol
;; Capacitor uses a special URL for assets loading
asset-path (gp-config/remove-asset-protocol src)]
(if (string/blank? asset-path)
(reset! *exist? false)
;; FIXME(andelf): possible bug here