fix: add stb error handling
This commit is contained in:
@@ -40,7 +40,9 @@
|
|||||||
})
|
})
|
||||||
$CurrentCharacter.globalLore = newLore
|
$CurrentCharacter.globalLore = newLore
|
||||||
}
|
}
|
||||||
stb.destroy()
|
try {
|
||||||
|
stb.destroy()
|
||||||
|
} catch (error) {}
|
||||||
sorted += 1
|
sorted += 1
|
||||||
await sleep(1)
|
await sleep(1)
|
||||||
createStb()
|
createStb()
|
||||||
@@ -55,7 +57,9 @@
|
|||||||
const onOpen = () => {
|
const onOpen = () => {
|
||||||
opened += 1
|
opened += 1
|
||||||
if(stb){
|
if(stb){
|
||||||
stb.destroy()
|
try {
|
||||||
|
stb.destroy()
|
||||||
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const onClose = () => {
|
const onClose = () => {
|
||||||
@@ -67,7 +71,9 @@
|
|||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
if(stb){
|
if(stb){
|
||||||
stb.destroy()
|
try {
|
||||||
|
stb.destroy()
|
||||||
|
} catch (error) { }
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -21,7 +21,9 @@
|
|||||||
newValue.push(value[i])
|
newValue.push(value[i])
|
||||||
})
|
})
|
||||||
value = newValue
|
value = newValue
|
||||||
stb.destroy()
|
try {
|
||||||
|
stb.destroy()
|
||||||
|
} catch (error) {}
|
||||||
sorted += 1
|
sorted += 1
|
||||||
await sleep(1)
|
await sleep(1)
|
||||||
createStb()
|
createStb()
|
||||||
@@ -33,7 +35,9 @@
|
|||||||
const onOpen = () => {
|
const onOpen = () => {
|
||||||
opened += 1
|
opened += 1
|
||||||
if(stb){
|
if(stb){
|
||||||
stb.destroy()
|
try {
|
||||||
|
stb.destroy()
|
||||||
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const onClose = () => {
|
const onClose = () => {
|
||||||
@@ -47,7 +51,9 @@
|
|||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
if(stb){
|
if(stb){
|
||||||
stb.destroy()
|
try {
|
||||||
|
stb.destroy()
|
||||||
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -39,7 +39,9 @@
|
|||||||
})
|
})
|
||||||
chara.chats = newValue
|
chara.chats = newValue
|
||||||
chara.chatPage = newChatPage
|
chara.chatPage = newChatPage
|
||||||
stb.destroy()
|
try {
|
||||||
|
stb.destroy()
|
||||||
|
} catch (error) {}
|
||||||
sorted += 1
|
sorted += 1
|
||||||
await sleep(1)
|
await sleep(1)
|
||||||
createStb()
|
createStb()
|
||||||
@@ -52,7 +54,9 @@
|
|||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
if(stb){
|
if(stb){
|
||||||
stb.destroy()
|
try {
|
||||||
|
stb.destroy()
|
||||||
|
} catch (error) {}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user