fix: add stb error handling
This commit is contained in:
@@ -21,7 +21,9 @@
|
||||
newValue.push(value[i])
|
||||
})
|
||||
value = newValue
|
||||
stb.destroy()
|
||||
try {
|
||||
stb.destroy()
|
||||
} catch (error) {}
|
||||
sorted += 1
|
||||
await sleep(1)
|
||||
createStb()
|
||||
@@ -33,7 +35,9 @@
|
||||
const onOpen = () => {
|
||||
opened += 1
|
||||
if(stb){
|
||||
stb.destroy()
|
||||
try {
|
||||
stb.destroy()
|
||||
} catch (error) {}
|
||||
}
|
||||
}
|
||||
const onClose = () => {
|
||||
@@ -47,7 +51,9 @@
|
||||
|
||||
onDestroy(() => {
|
||||
if(stb){
|
||||
stb.destroy()
|
||||
try {
|
||||
stb.destroy()
|
||||
} catch (error) {}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user