@btc-vision/walletconnect 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -18,6 +18,9 @@ class OPWallet implements WalletBase {
|
|
|
18
18
|
private _isConnected: boolean = false;
|
|
19
19
|
|
|
20
20
|
isInstalled() {
|
|
21
|
+
if (typeof window === 'undefined') {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
21
24
|
this.walletBase = (window as unknown as OPWalletWindow).opnet;
|
|
22
25
|
return !!this.walletBase;
|
|
23
26
|
}
|
|
@@ -23,6 +23,9 @@ class UnisatWallet implements WalletBase {
|
|
|
23
23
|
private _isConnected: boolean = false;
|
|
24
24
|
|
|
25
25
|
isInstalled() {
|
|
26
|
+
if (typeof window === 'undefined') {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
26
29
|
this.walletBase = (window as unknown as UnisatWalletWindow).unisat;
|
|
27
30
|
return !!this.walletBase;
|
|
28
31
|
}
|