浏览代码

fix(api): invalid arity error of show msg

charlie 3 年之前
父节点
当前提交
45d4a68ac6
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/main/logseq/api.cljs

+ 1 - 0
src/main/logseq/api.cljs

@@ -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) "[:"))