mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
fix
This commit is contained in:
parent
bb8771a5b4
commit
104839f7ea
@ -228,6 +228,9 @@ function onLoad() {
|
||||
|
||||
// 创建窗口时触发
|
||||
function onBrowserWindowCreated(window: BrowserWindow) {
|
||||
if (window.id === 2) {
|
||||
mainWindow = window
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -442,6 +442,7 @@ export interface RawMessage {
|
||||
attrType: number
|
||||
attrId: string
|
||||
}>
|
||||
isOnlineMsg: boolean
|
||||
}
|
||||
|
||||
export interface Peer {
|
||||
|
@ -247,7 +247,9 @@ async function onSettingWindowCreated(view: Element) {
|
||||
} else {
|
||||
errDom?.classList.add('show')
|
||||
}
|
||||
errCodeDom!.innerHTML = errMsg
|
||||
if (errCodeDom) {
|
||||
errCodeDom.innerHTML = errMsg
|
||||
}
|
||||
}
|
||||
showError().then()
|
||||
|
||||
@ -456,8 +458,8 @@ async function onSettingWindowCreated(view: Element) {
|
||||
}
|
||||
window.llonebot.checkVersion().then(checkVersionFunc)
|
||||
window.addEventListener('beforeunload', () => {
|
||||
window.llonebot.getConfig().then(oldConfig=>{
|
||||
if(JSON.stringify(oldConfig) !== JSON.stringify(config)){
|
||||
window.llonebot.getConfig().then(oldConfig => {
|
||||
if (JSON.stringify(oldConfig) !== JSON.stringify(config)) {
|
||||
window.llonebot.setConfig(true, config)
|
||||
}
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user