fix: add stb error handling

This commit is contained in:
kwaroran
2024-06-07 00:38:15 +09:00
parent c1243aaf54
commit c54b1a6d30
3 changed files with 24 additions and 8 deletions

View File

@@ -40,7 +40,9 @@
})
$CurrentCharacter.globalLore = newLore
}
stb.destroy()
try {
stb.destroy()
} catch (error) {}
sorted += 1
await sleep(1)
createStb()
@@ -55,7 +57,9 @@
const onOpen = () => {
opened += 1
if(stb){
stb.destroy()
try {
stb.destroy()
} catch (error) {}
}
}
const onClose = () => {
@@ -67,7 +71,9 @@
onDestroy(() => {
if(stb){
stb.destroy()
try {
stb.destroy()
} catch (error) { }
}
})
</script>