enhance(plugin): auto updates for web plugins

This commit is contained in:
charlie
2025-01-08 13:15:26 +08:00
parent 1110e81741
commit d0cd4c2e1e
5 changed files with 23 additions and 19 deletions

View File

@@ -785,7 +785,7 @@
(some-> github-repo
(plugin-common-handler/get-web-plugin-checker-url!))
(str url "/package.json"))
^js res (js/window.fetch package-url)
^js res (js/window.fetch (str package-url "?v=" (js/Date.now)))
package (if (and (.-ok res)
(= (.-status res) 200))
(-> (.json res)