fix: remove unuse

This commit is contained in:
手瓜一十雪 2024-05-05 13:42:43 +08:00
parent 9fce617c57
commit 07e8acd003

View File

@ -3,9 +3,7 @@ import { SettingItem } from "./SettingItem";
import { SettingButton } from "./SettingButton"; import { SettingButton } from "./SettingButton";
import { SettingSwitch } from "./SettingSwitch"; import { SettingSwitch } from "./SettingSwitch";
import { SettingSelect } from "./SettingSelect"; import { SettingSelect } from "./SettingSelect";
async function onSettingWindowCreated(view: Element) {
function aprilFoolsEgg(node: Element) {
async function onSettingWindowCreated(view: Element) {
const isEmpty = (value: any) => value === undefined || value === undefined || value === '' const isEmpty = (value: any) => value === undefined || value === undefined || value === ''
//@ts-ignore 等待替换为异步Http获取 带上Token //@ts-ignore 等待替换为异步Http获取 带上Token
let config = await window.llonebot.getConfig(); let config = await window.llonebot.getConfig();
@ -414,6 +412,5 @@ function aprilFoolsEgg(node: Element) {
//@ts-ignore 等待替换为前端实现 //@ts-ignore 等待替换为前端实现
window.llonebot.setConfig(true, config) window.llonebot.setConfig(true, config)
}) })
}
} }
export { onSettingWindowCreated } export { onSettingWindowCreated }