diff --git a/src/main/frontend/handler/file_sync.cljs b/src/main/frontend/handler/file_sync.cljs index 903029562a..be0ad2a2f3 100644 --- a/src/main/frontend/handler/file_sync.cljs +++ b/src/main/frontend/handler/file_sync.cljs @@ -1,21 +1,22 @@ (ns frontend.handler.file-sync "Provides util handler fns for file sync" (:require ["path" :as node-path] + [cljs-time.coerce :as tc] + [cljs-time.core :as t] [cljs-time.format :as tf] [cljs.core.async :as async :refer [go c]] [clojure.string :as string] [frontend.config :as config] [frontend.db :as db] + [frontend.fs :as fs] [frontend.fs.sync :as sync] [frontend.handler.notification :as notification] - [frontend.state :as state] [frontend.handler.user :as user] - [frontend.fs :as fs] [frontend.pubsub :as pubsub] - [cljs-time.coerce :as tc] - [cljs-time.core :as t] + [frontend.state :as state] [frontend.storage :as storage] + [frontend.util :as util] [lambdaisland.glogi :as log] [logseq.common.path :as path])) @@ -23,7 +24,6 @@ (def refresh-file-sync-component (atom false)) - (defn get-current-graph-uuid [] (state/get-current-file-sync-graph-uuid)) @@ -100,10 +100,12 @@ (defn load-session-graphs [] (when-not (state/sub [:file-sync/remote-graphs :loading]) - (go (state/set-state! [:file-sync/remote-graphs :loading] true) + (go + (when-not util/web-platform? + (state/set-state! [:file-sync/remote-graphs :loading] true) (let [graphs-or-exp ())] all-version-list))))) - (defn init-remote-graph [local-graph-dir graph] (when (and local-graph-dir graph)