Browse Source

fix: remvoe frontend.util usage from worker

Tienson Qin 1 year ago
parent
commit
d88dcd0fd4
1 changed files with 2 additions and 3 deletions
  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.transform :as mt]
             [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
   [:multi {:dispatch first}
@@ -544,5 +543,5 @@
   "Is db-graph & RTC enabled"
   [repo]
   (and (sqlite-util/db-based-graph? repo)
-       (or util/node-test?
+       (or (exists? js/process)
            (some? (get-local-tx repo)))))