Browse code

Add function to get prompt element using ID from database

Joseph Weston authored on 18/12/2021 23:09:09
Showing 1 changed files
... ...
@@ -11,6 +11,9 @@
11 11
  (fn-traced [_ _]
12 12
    db/default-db))
13 13
 
14
+(defn prompt [db]
15
+  (->> db :cmdline :prompt-id (.getElementById js/document)))
16
+
14 17
 (defn single-space [s]
15 18
   (as-> s x
16 19
         (split x " ")