Przeglądaj źródła

fix hidden files removing failure on mobile

llcc 3 lat temu
rodzic
commit
d66ab6aa82
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/main/frontend/handler/repo.cljs

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

@@ -295,7 +295,7 @@
                      (common-handler/read-config content)))
         relate-path-fn (fn [m k]
                          (some-> (get m k)
-                                 (string/replace (str (config/get-local-dir repo-url) "/") "")))
+                                 (string/replace (js/decodeURI (config/get-local-dir repo-url)) "")))
         nfs-files (common-handler/remove-hidden-files nfs-files config #(relate-path-fn % :file/path))
         diffs (common-handler/remove-hidden-files diffs config #(relate-path-fn % :path))
         load-contents (fn [files option]