mirror of
https://github.com/logseq/logseq.git
synced 2026-05-26 21:54:26 +00:00
fix(api): invalid arity error of show msg
This commit is contained in:
@@ -729,6 +729,7 @@
|
||||
;; ui
|
||||
(defn ^:export show_msg
|
||||
([content] (show_msg content :success nil))
|
||||
([content status] (show_msg content status nil))
|
||||
([content status ^js opts]
|
||||
(let [{:keys [key timeout]} (bean/->clj opts)
|
||||
hiccup? (and (string? content) (string/starts-with? (string/triml content) "[:"))
|
||||
|
||||
Reference in New Issue
Block a user