|
@@ -1421,8 +1421,7 @@
|
|
(assets-handler/resolve-asset-real-path-url (state/get-current-repo) path)
|
|
(assets-handler/resolve-asset-real-path-url (state/get-current-repo) path)
|
|
|
|
|
|
(util/electron?)
|
|
(util/electron?)
|
|
- (str "assets://"
|
|
|
|
- (assets-handler/encode-to-protect-assets-schema-path full-path))
|
|
|
|
|
|
+ (str "assets://" full-path)
|
|
|
|
|
|
(mobile-util/native-platform?)
|
|
(mobile-util/native-platform?)
|
|
(mobile-util/convert-file-src full-path)
|
|
(mobile-util/convert-file-src full-path)
|
|
@@ -1448,8 +1447,7 @@
|
|
(save-block! repo block content)
|
|
(save-block! repo block content)
|
|
(when (and local? delete-local?)
|
|
(when (and local? delete-local?)
|
|
;; FIXME: should be relative to current block page path
|
|
;; FIXME: should be relative to current block page path
|
|
- (when-let [href (if (util/electron?)
|
|
|
|
- (assets-handler/decode-protected-assets-schema-path href)
|
|
|
|
|
|
+ (when-let [href (if (util/electron?) href
|
|
(second (re-find #"\((.+)\)$" full-text)))]
|
|
(second (re-find #"\((.+)\)$" full-text)))]
|
|
(fs/unlink! repo
|
|
(fs/unlink! repo
|
|
(config/get-repo-path
|
|
(config/get-repo-path
|