fix(plugin): restart app not work

This commit is contained in:
charlie
2021-09-14 18:27:06 +08:00
committed by Tienson Qin
parent 7b909704ab
commit 07063f1592

View File

@@ -24,7 +24,7 @@
(defn invoke-exported-api
[type & args]
(try
(apply js-invoke js/logseq.api type args)
(apply js-invoke (aget js/window.logseq "api") type args)
(catch js/Error e (js/console.error e))))
;; state handlers