Skip to content

Commit

Permalink
Add :on-load-1 launcher option
Browse files Browse the repository at this point in the history
  • Loading branch information
djblue committed Aug 9, 2024
1 parent 392360f commit 6953d2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/portal/runtime/rpc.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
(when-let [f (get-in session [:options :on-load])]
(try
(f)
(catch #?(:cljs :default :default Exception) e
(tap> e))))
(when-let [f (get-in session [:options :on-load-1])]
(try
(f (c/make-atom (:session-id session)))
(catch #?(:cljs :default :default Exception) e
(tap> e)))))

Expand Down

0 comments on commit 6953d2d

Please sign in to comment.