fix: can't save config.edn on web

This commit is contained in:
Tienson Qin
2023-03-27 18:16:06 +08:00
committed by Andelf
parent d9765a1b59
commit 9abfd4af8b

View File

@@ -81,13 +81,6 @@
[path format] (:rum/args state)
repo-dir (config/get-repo-dir (state/get-current-repo))
[dir path] (cond
(string/starts-with? path (str (global-config-handler/safe-global-config-dir)))
[nil path]
;; in-repo file, absolute path
(string/starts-with? path repo-dir)
[nil path]
;; assume local file, relative path
(not (string/starts-with? path "/"))
[repo-dir path]