bnc-assist
Advanced tools
Comparing version 0.8.2 to 0.8.3
{ | ||
"name": "bnc-assist", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"description": "Blocknative Assist js library for Dapp developers", | ||
@@ -5,0 +5,0 @@ "main": "lib/assist.min.js", |
@@ -46,3 +46,3 @@ # Assist.js | ||
The library uses [semantic versioning](https://semver.org/spec/v2.0.0.html). | ||
The current version is 0.8.2. | ||
The current version is 0.8.3. | ||
There are minified and non-minified versions. | ||
@@ -52,7 +52,7 @@ Put this script at the top of your `<head>` | ||
```html | ||
<script src="https://assist.blocknative.com/0-8-2/assist.js"></script> | ||
<script src="https://assist.blocknative.com/0-8-3/assist.js"></script> | ||
<!-- OR... --> | ||
<script src="https://assist.blocknative.com/0-8-2/assist.min.js"></script> | ||
<script src="https://assist.blocknative.com/0-8-3/assist.min.js"></script> | ||
``` | ||
@@ -59,0 +59,0 @@ |
@@ -113,3 +113,3 @@ import { state, updateState } from '~/js/helpers/state' | ||
if (!state.web3Instance) { | ||
if (!state.web3Instance || !state.web3Wallet) { | ||
if (state.mobileDevice) { | ||
@@ -116,0 +116,0 @@ try { |
@@ -111,3 +111,3 @@ import { state } from '~/js/helpers/state' | ||
) || | ||
'mainnet'} network for this application but you have MetaMask set to ${networkName( | ||
'mainnet'} network for this application but you have your wallet set to ${networkName( | ||
state.userCurrentNetworkId | ||
@@ -114,0 +114,0 @@ )}. Please switch to the correct network.` |
@@ -119,2 +119,7 @@ import { state } from '~/js/helpers/state' | ||
) | ||
if (state.mobileDevice) { | ||
addTouchHandlers(modal.children[0], 'modal') | ||
} | ||
openModal(modal, handlers) | ||
@@ -121,0 +126,0 @@ } |
Sorry, the diff of this file is too big to display
2460582
11123