Archived
fix: Allow disconnecting if state is connecting
This commit is contained in:
+1
-2
@@ -68,11 +68,10 @@ function setStatus(status: UIStatus): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
orb.addEventListener('click', async () => {
|
orb.addEventListener('click', async () => {
|
||||||
if (currentStatus.state === 'connected') {
|
if (['connected', 'connecting'].includes(currentStatus.state ?? '')) {
|
||||||
await window.vynte.disconnect();
|
await window.vynte.disconnect();
|
||||||
} else if (
|
} else if (
|
||||||
![
|
![
|
||||||
'connecting',
|
|
||||||
'disconnecting',
|
'disconnecting',
|
||||||
'loggingOut',
|
'loggingOut',
|
||||||
'checking',
|
'checking',
|
||||||
|
|||||||
Reference in New Issue
Block a user