Skip to content

Commit

Permalink
Fix babashka#89: Allow evaluate_script_tags to specify scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
chr15m committed Nov 15, 2024
1 parent dbbb3ef commit 6dc2b7a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/scittle/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@
(eval-script-tags* (rest script-tags)))
(eval-script-tags* (rest script-tags))))))

(defn ^:export eval-script-tags []
(let [script-tags (.querySelectorAll doc "script[type='application/x-scittle']")]
(defn ^:export eval-script-tags [& script-tags]
(let [script-tags (or script-tags
(.querySelectorAll
doc "script[type='application/x-scittle']"))]
(eval-script-tags* script-tags)))

(def auto-load-disabled? (volatile! false))
Expand Down

0 comments on commit 6dc2b7a

Please sign in to comment.