feat: add url document support for http protocol

pull/90/head
moonrailgun 2 years ago
parent 629bcdb8ce
commit 6edb013af7

@ -15,7 +15,7 @@ export const DocumentView: React.FC<DocumentViewProps> = React.memo((props) => {
if (documentUrl.endsWith('.md')) {
return <DocumentMarkdownRender url={documentUrl} />;
} else if (documentUrl.endsWith('.html')) {
} else if (documentUrl.endsWith('.html') || documentUrl.startsWith('http')) {
return <iframe src={documentUrl} />;
} else {
return <Problem text={t('不支持渲染的文档链接')} />;

@ -3,6 +3,7 @@
"name": "com.msgbyte.wxpusher",
"url": "{BACKEND}/plugins/com.msgbyte.wxpusher/index.js",
"icon": "{BACKEND}/plugins/com.msgbyte.wxpusher/assets/icon.png",
"documentUrl": "https://tailchat.msgbyte.com/zh-Hans/docs/advanced-usage/plugins/com.msgbyte.wxpusher",
"version": "0.0.0",
"author": "moonrailgun",
"description": "Add support for wxpusher to notify user",

Loading…
Cancel
Save