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 () => {
|
||||
if (currentStatus.state === 'connected') {
|
||||
if (['connected', 'connecting'].includes(currentStatus.state ?? '')) {
|
||||
await window.vynte.disconnect();
|
||||
} else if (
|
||||
![
|
||||
'connecting',
|
||||
'disconnecting',
|
||||
'loggingOut',
|
||||
'checking',
|
||||
|
||||
Reference in New Issue
Block a user