fix: remove unuse
This commit is contained in:
1 parent
57db43e3c6
commit
ba1ccb2a60
1 file changed
+1
-4
@@ -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 }
|
||||||
Reference in new issue
Block a user