Explorar o código

fix(mobile): log print error instead of js/alert

Avoid annoying javascript alert window
llcc %!s(int64=3) %!d(string=hai) anos
pai
achega
dd48d264e9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/frontend/fs/capacitor_fs.cljs

+ 1 - 1
src/main/frontend/fs/capacitor_fs.cljs

@@ -208,7 +208,7 @@
                                     :encoding (.-UTF8 Encoding)}))]
          content)
        (p/catch (fn [error]
-                  (js/alert error))))))
+                  (log/error :read-file-failed error))))))
   (delete-file! [_this repo dir path {:keys [ok-handler error-handler]}]
     (let [path (get-file-path dir path)]
       (p/catch