Selaa lähdekoodia

fix: remvoe frontend.util usage from worker

Tienson Qin 1 vuosi sitten
vanhempi
sitoutus
d88dcd0fd4
1 muutettua tiedostoa jossa 2 lisäystä ja 3 poistoa
  1. 2 3
      src/main/frontend/worker/rtc/op_mem_layer.cljs

+ 2 - 3
src/main/frontend/worker/rtc/op_mem_layer.cljs

@@ -8,8 +8,7 @@
             [malli.core :as m]
             [malli.core :as m]
             [malli.transform :as mt]
             [malli.transform :as mt]
             [promesa.core :as p]
             [promesa.core :as p]
-            [logseq.db.sqlite.util :as sqlite-util]
-            [frontend.util :as util]))
+            [logseq.db.sqlite.util :as sqlite-util]))
 
 
 (def op-schema
 (def op-schema
   [:multi {:dispatch first}
   [:multi {:dispatch first}
@@ -544,5 +543,5 @@
   "Is db-graph & RTC enabled"
   "Is db-graph & RTC enabled"
   [repo]
   [repo]
   (and (sqlite-util/db-based-graph? repo)
   (and (sqlite-util/db-based-graph? repo)
-       (or util/node-test?
+       (or (exists? js/process)
            (some? (get-local-tx repo)))))
            (some? (get-local-tx repo)))))