This commit is contained in:
Vanessa 2023-05-25 23:18:38 +08:00
parent cf4be3d8b1
commit 78e70369b2
2 changed files with 6 additions and 1 deletions

View file

@ -54,6 +54,11 @@ export class Plugin {
// 布局加载完成
}
public addIcons(svg: string) {
document.body.insertAdjacentHTML("afterbegin", `<svg style="position: absolute; width: 0; height: 0; overflow: hidden;" xmlns="http://www.w3.org/2000/svg">
<defs>${svg}</defs></svg>`);
}
public addTopBar(options: {
icon: string,
title: string,