From 6edb013af79d4534f4374088c52ee854da3cbfa2 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 23 Apr 2023 20:31:47 +0800 Subject: [PATCH] feat: add url document support for http protocol --- client/web/src/plugin/PluginStore/DocumentView/index.tsx | 2 +- .../web/plugins/com.msgbyte.wxpusher/manifest.json | 1 + .../plugins/{wxpusher.md => com.msgbyte.wxpusher.md} | 0 .../plugins/{wxpusher.md => com.msgbyte.wxpusher.md} | 0 4 files changed, 2 insertions(+), 1 deletion(-) rename website/docs/advanced-usage/plugins/{wxpusher.md => com.msgbyte.wxpusher.md} (100%) rename website/i18n/zh-Hans/docusaurus-plugin-content-docs/current/advanced-usage/plugins/{wxpusher.md => com.msgbyte.wxpusher.md} (100%) diff --git a/client/web/src/plugin/PluginStore/DocumentView/index.tsx b/client/web/src/plugin/PluginStore/DocumentView/index.tsx index 309c06a7..9b199079 100644 --- a/client/web/src/plugin/PluginStore/DocumentView/index.tsx +++ b/client/web/src/plugin/PluginStore/DocumentView/index.tsx @@ -15,7 +15,7 @@ export const DocumentView: React.FC = React.memo((props) => { if (documentUrl.endsWith('.md')) { return ; - } else if (documentUrl.endsWith('.html')) { + } else if (documentUrl.endsWith('.html') || documentUrl.startsWith('http')) { return