Browse Source

fix(plugin): incorrect readme link for the marketplace plugins

charlie 7 months ago
parent
commit
1de94faa90
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/frontend/components/plugins.cljs

+ 2 - 2
src/main/frontend/components/plugins.cljs

@@ -202,8 +202,8 @@
 
 
 (rum/defc remote-readme-display
 (rum/defc remote-readme-display
   [{:keys [repo]} _content]
   [{:keys [repo]} _content]
-
-  (let [src (str "./marketplace.html?repo=" repo)]
+  (let [src (str (if (string/includes? js/location.href "logseq")
+                   "./static/" "./") "marketplace.html?repo=" repo)]
     [:iframe.lsp-frame-readme {:src src}]))
     [:iframe.lsp-frame-readme {:src src}]))
 
 
 (defn security-warning
 (defn security-warning