@multiplechain/bitcoin 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/provider.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "namespace": "multiplechain",
3
3
  "name": "@multiplechain/bitcoin",
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "description": "Bitcoin JS provider",
6
6
  "scripts": {
7
7
  "serve": "parcel test.html --no-cache --dist-dir test",
package/src/provider.js CHANGED
@@ -161,7 +161,7 @@ class Provider {
161
161
  if (typeof window != 'undefined') {
162
162
  const Wallet = require('./wallet');
163
163
 
164
- if (typeof window.unisat !== 'undefined') {
164
+ if (typeof window.unisat !== 'undefined' && unisat.requestAccounts) {
165
165
  this.detectedWallets['unisat'] = new Wallet('unisat', this);
166
166
  }
167
167
  }