Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
| var elm_ethereum_ports = require('elm-ethereum-ports'); | |
| var Elm = require( '../../src/Main' ); | |
| window.addEventListener('load', function () { | |
| if (typeof web3 !== 'undefined') { | |
| web3.version.getNetwork(function (e, networkId) { | |
| app = Elm.Main.fullscreen(parseInt(networkId)); | |
| elm_ethereum_ports.txSentry(app.ports.txOut, app.ports.txIn, web3); | |
| elm_ethereum_ports.walletSentry(app.ports.walletSentry, web3); | |
| }); | |
| } else { | |
| app = Elm.Main.fullscreen(0); | |
| console.log("Metamask not detected."); | |
| } | |
| }); |