1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

development - fix ui dev

This commit is contained in:
kumavis 2017-09-29 11:50:24 -07:00
parent cdf41c2857
commit 19e7adad19
2 changed files with 75 additions and 72 deletions

View File

@ -3,16 +3,10 @@
<head>
<meta charset="utf-8">
<title>MetaMask</title>
</head>
<body>
<!-- app content -->
<div id="app-content" style="height: 100%"></div>
<script src="./bundle.js" type="text/javascript" charset="utf-8"></script>
</body>
<style>
html, body, #test-container, .super-dev-container {
height: 100%;
@ -61,4 +55,6 @@ function reload() {
window.location.reload()
}
</script>
</body>
</html>

View File

@ -61,12 +61,18 @@ const actions = {
var css = MetaMaskUiCss()
injectCss(css)
const container = document.querySelector('#test-container')
// parse opts
var store = configureStore(states[selectedView])
// start app
startApp()
function startApp(){
const body = document.body
const container = document.createElement('div')
container.id = 'test-container'
body.appendChild(container)
render(
h('.super-dev-container', [
@ -87,4 +93,5 @@ render(
]
), container)
}