mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Merge pull request #774 from MetaMask/walkThrough
Add more info to mascara README
This commit is contained in:
commit
014c971b89
@ -4,3 +4,21 @@ node server.js
|
|||||||
```
|
```
|
||||||
|
|
||||||
open the example dapp at `http://localhost:9002/`
|
open the example dapp at `http://localhost:9002/`
|
||||||
|
|
||||||
|
*You will need to build MetaMask in order for this to work*
|
||||||
|
```
|
||||||
|
gulp dev
|
||||||
|
```
|
||||||
|
to build MetaMask and have it live reload if you make changes
|
||||||
|
|
||||||
|
|
||||||
|
## First time use:
|
||||||
|
|
||||||
|
- navigate to: http://127.0.0.1:9001/popup/popup.html
|
||||||
|
- Create an Account
|
||||||
|
- go back to http://localhost:9002/
|
||||||
|
- open devTools
|
||||||
|
- click Sync Tx
|
||||||
|
|
||||||
|
### Todos
|
||||||
|
- Look into using [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API)
|
||||||
|
@ -4,7 +4,6 @@ const setupProvider = require('./lib/setup-provider.js')
|
|||||||
//
|
//
|
||||||
// setup web3
|
// setup web3
|
||||||
//
|
//
|
||||||
|
|
||||||
var provider = setupProvider()
|
var provider = setupProvider()
|
||||||
hijackProvider(provider)
|
hijackProvider(provider)
|
||||||
var web3 = new Web3(provider)
|
var web3 = new Web3(provider)
|
||||||
@ -27,7 +26,7 @@ var shouldPop = false
|
|||||||
window.addEventListener('click', function(){
|
window.addEventListener('click', function(){
|
||||||
if (!shouldPop) return
|
if (!shouldPop) return
|
||||||
shouldPop = false
|
shouldPop = false
|
||||||
window.open('http://127.0.0.1:9001/popup/popup.html', '', 'width=1000')
|
window.open('http://127.0.0.1:9001/popup/popup.html', '', 'width=360 height=500')
|
||||||
console.log('opening window...')
|
console.log('opening window...')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user