diff --git a/src/main/frontend/mobile/core.cljs b/src/main/frontend/mobile/core.cljs index 521ec34d8..6ecc5b257 100644 --- a/src/main/frontend/mobile/core.cljs +++ b/src/main/frontend/mobile/core.cljs @@ -6,7 +6,11 @@ [reitit.frontend.easy :as rfe] [clojure.string :as string] [frontend.handler.notification :as notification] - [frontend.fs.capacitor-fs :as fs])) + [frontend.fs.capacitor-fs :as fs] + [frontend.handler.page :as page-handler] + [frontend.modules.shortcut.core :as shortcut] + [frontend.components.repo :as repo] + [frontend.handler.web.nfs :as nfs-handler])) (defn init! [] @@ -39,4 +43,10 @@ (.addListener Keyboard "keyboardWillShow" #(state/pub-event! [:mobile/keyboard-will-show])) (.addListener Keyboard "keyboardDidShow" - #(state/pub-event! [:mobile/keyboard-did-show])))) + #(state/pub-event! [:mobile/keyboard-did-show])) + + (.addListener App "appStateChange" + #(let [repo (state/get-current-repo)] + (nfs-handler/refresh! repo repo/refresh-cb) + ;; (notification/show! "Notes updated!" :success true) + ))))