Browse Source

fix: update repl fns for mobile

Tienson Qin 4 months ago
parent
commit
cf73768ed2
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/dev-cljs/shadow/user.clj

+ 6 - 6
src/dev-cljs/shadow/user.clj

@@ -11,10 +11,10 @@
   (api/watch :electron)
   (api/watch :electron)
   (api/repl :electron))
   (api/repl :electron))
 
 
-(defn capacitor-repl
+(defn mobile-repl
   []
   []
-  (api/watch :capacitor-new)
-  (api/repl :capacitor-new))
+  (api/watch :mobile)
+  (api/repl :mobile))
 
 
 ;; Get the runtime id from http://localhost:9630/runtimes, pick the one which shows `browser-worker`
 ;; Get the runtime id from http://localhost:9630/runtimes, pick the one which shows `browser-worker`
 (defn worker-repl
 (defn worker-repl
@@ -36,13 +36,13 @@
            runtime-id (apply (if (= :old runtime-id-or-which) min max) runtime-ids)]
            runtime-id (apply (if (= :old runtime-id-or-which) min max) runtime-ids)]
        (worker-repl runtime-id)))))
        (worker-repl runtime-id)))))
 
 
-(defn capacitor-worker-repl
+(defn mobile-worker-repl
   []
   []
-  (when-let [runtime-id (->> (api/repl-runtimes :capacitor-new)
+  (when-let [runtime-id (->> (api/repl-runtimes :mobile)
                              (filter (fn [runtime] (= :browser-worker (:host runtime))))
                              (filter (fn [runtime] (= :browser-worker (:host runtime))))
                              (map :client-id)
                              (map :client-id)
                              (apply max))]
                              (apply max))]
-    (api/repl :capacitor-new {:runtime-id runtime-id})))
+    (api/repl :mobile {:runtime-id runtime-id})))
 
 
 (defn runtime-id-list
 (defn runtime-id-list
   [app]
   [app]