瀏覽代碼

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

charlie 7 月之前
父節點
當前提交
1de94faa90
共有 1 個文件被更改,包括 2 次插入2 次删除
  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
   [{: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}]))
 
 (defn security-warning