fix: webui-6

This commit is contained in:
手瓜一十雪
2024-05-05 13:40:54 +08:00
parent b9ff8426f5
commit 57db43e3c6
2 changed files with 14 additions and 15 deletions

View File

@@ -4,8 +4,6 @@ import { SettingButton } from "./SettingButton";
import { SettingSwitch } from "./SettingSwitch";
import { SettingSelect } from "./SettingSelect";
// @ts-ignore 引入Css 能不能优雅点 神经这样写
import StyleRaw from "../assets/NapCat.css";
function aprilFoolsEgg(node: Element) {
async function onSettingWindowCreated(view: Element) {
const isEmpty = (value: any) => value === undefined || value === undefined || value === ''
@@ -32,7 +30,6 @@ function aprilFoolsEgg(node: Element) {
const doc = parser.parseFromString(
[
'<div>',
`<style>${StyleRaw}</style>`,
`<setting-section id="llonebot-error">
<setting-panel><pre><code></code></pre></setting-panel>
</setting-section>`,