From 78e70369b2c01a0fac2956de7080bd629dbc6f43 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 25 May 2023 23:18:38 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/5066 addIcons --- app/appearance/icons/ant/icon.js | 2 +- app/src/plugin/index.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/appearance/icons/ant/icon.js b/app/appearance/icons/ant/icon.js index 2059c1d3f..5d8047002 100644 --- a/app/appearance/icons/ant/icon.js +++ b/app/appearance/icons/ant/icon.js @@ -1,4 +1,4 @@ -document.body.insertAdjacentHTML('afterBegin', ` +document.body.insertAdjacentHTML('afterbegin', ` diff --git a/app/src/plugin/index.ts b/app/src/plugin/index.ts index 367f8490e..ade72c197 100644 --- a/app/src/plugin/index.ts +++ b/app/src/plugin/index.ts @@ -54,6 +54,11 @@ export class Plugin { // 布局加载完成 } + public addIcons(svg: string) { + document.body.insertAdjacentHTML("afterbegin", ` +${svg}`); + } + public addTopBar(options: { icon: string, title: string,