aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-10-27 05:42:10 +0800
committerGitHub <noreply@github.com>2016-10-27 05:42:10 +0800
commit014c971b89f12f18a142eec4c8d9f356fcbb3633 (patch)
tree5dab9bb35a4e1fcd28da01ea91a00889611d781a
parent5f98814877b7050f6453b44fd47d34b9959add68 (diff)
parent08c8dc823ebc2780a5d58d699558a9be6b37ff7f (diff)
downloadtangerine-wallet-browser-014c971b89f12f18a142eec4c8d9f356fcbb3633.tar
tangerine-wallet-browser-014c971b89f12f18a142eec4c8d9f356fcbb3633.tar.gz
tangerine-wallet-browser-014c971b89f12f18a142eec4c8d9f356fcbb3633.tar.bz2
tangerine-wallet-browser-014c971b89f12f18a142eec4c8d9f356fcbb3633.tar.lz
tangerine-wallet-browser-014c971b89f12f18a142eec4c8d9f356fcbb3633.tar.xz
tangerine-wallet-browser-014c971b89f12f18a142eec4c8d9f356fcbb3633.tar.zst
tangerine-wallet-browser-014c971b89f12f18a142eec4c8d9f356fcbb3633.zip
Merge pull request #774 from MetaMask/walkThrough
Add more info to mascara README
-rw-r--r--library/README.md20
-rw-r--r--library/index.js5
2 files changed, 21 insertions, 4 deletions
diff --git a/library/README.md b/library/README.md
index 7dc291564..6a6574dbd 100644
--- a/library/README.md
+++ b/library/README.md
@@ -3,4 +3,22 @@ start the dual servers (dapp + mascara)
node server.js
```
-open the example dapp at `http://localhost:9002/` \ No newline at end of file
+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)
diff --git a/library/index.js b/library/index.js
index ab341f1f8..b5f4f6637 100644
--- a/library/index.js
+++ b/library/index.js
@@ -4,7 +4,6 @@ const setupProvider = require('./lib/setup-provider.js')
//
// setup web3
//
-
var provider = setupProvider()
hijackProvider(provider)
var web3 = new Web3(provider)
@@ -27,7 +26,7 @@ var shouldPop = false
window.addEventListener('click', function(){
if (!shouldPop) return
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...')
})
@@ -41,4 +40,4 @@ function hijackProvider(provider){
}
_super(payload, cb)
}
-} \ No newline at end of file
+}