mirror of
https://github.com/logseq/logseq.git
synced 2026-04-25 14:44:53 +00:00
enhance(plugin): persist updates state for the web plugin
This commit is contained in:
@@ -224,6 +224,10 @@
|
||||
(.reload pl)
|
||||
#(do
|
||||
;;(if theme (select-a-plugin-theme id))
|
||||
(when (not (util/electron?))
|
||||
(set! (.-version (.-options pl)) (:version web-pkg))
|
||||
(set! (.-webPkg (.-options pl)) (bean/->js web-pkg))
|
||||
(invoke-exported-api :save_installed_web_plugin (.toJSON pl false)))
|
||||
(notification/show!
|
||||
(t :plugin/update-plugin name (.-version (.-options pl))) :success)
|
||||
(state/consume-updates-from-coming-plugin! payload true))))
|
||||
|
||||
Reference in New Issue
Block a user