mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
Fix provider connection check
This commit is contained in:
parent
853ab2d855
commit
81c62b1006
@ -76,7 +76,7 @@ class Provider {
|
||||
if (this.type === 'rpc') {
|
||||
return !!this.provider;
|
||||
} else if (this.type === 'ws') {
|
||||
return this.provider && this.provider.connected;
|
||||
return this.provider && this.provider.connection._connection.connected;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user