Skip to content

Commit

Permalink
version 0.8.3 (#233)
Browse files Browse the repository at this point in the history
* remove MetaMask specific language (#224)

* added condition so that mobile wallet dialog will show when user is on a mobile device and is not in a mobile dapp browser (#226)

* Add touch handlers to not supported modals if on mobile (#228)

* update to version 0.8.3
  • Loading branch information
cmeisl authored May 28, 2019
1 parent 59d84df commit 7ab008c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ yarn add bnc-assist
#### Script Tag

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.
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>
```

### Initialize the Library
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bnc-assist",
"version": "0.8.2",
"version": "0.8.3",
"description": "Blocknative Assist js library for Dapp developers",
"main": "lib/assist.min.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/js/logic/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function prepareForTransaction(categoryCode, originalResolve) {
}
}

if (!state.web3Instance) {
if (!state.web3Instance || !state.web3Wallet) {
if (state.mobileDevice) {
try {
await getWeb3Wallet(categoryCode)
Expand Down
2 changes: 1 addition & 1 deletion src/js/views/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const onboardDescription = {
`We’ve detected that you need to be on the ${networkName(
state.config.networkId
) ||
'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
)}. Please switch to the correct network.`
},
Expand Down
5 changes: 5 additions & 0 deletions src/js/views/event-to-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ function notSupportedUI(eventObj, handlers) {
'bn-onboard-modal-shade',
notSupportedModal(eventCodeToStep(eventCode))
)

if (state.mobileDevice) {
addTouchHandlers(modal.children[0], 'modal')
}

openModal(modal, handlers)
}

Expand Down

0 comments on commit 7ab008c

Please sign in to comment.