diff --git a/templates/demo/app/dapp.js b/templates/demo/app/dapp.js index 87f5c4a06..b57dea414 100644 --- a/templates/demo/app/dapp.js +++ b/templates/demo/app/dapp.js @@ -21,12 +21,14 @@ class App extends React.Component { error: null, activeKey: 1, whisperEnabled: false, - storageEnabled: false + storageEnabled: false, + blockchainEnabled: false }; } componentDidMount() { EmbarkJS.onReady((err) => { + this.setState({blockchainEnabled: true}); if (err) { // If err is not null then it means something went wrong connecting to ethereum // you can use this to ask the user to enable metamask for e.g @@ -81,7 +83,7 @@ class App extends React.Component { return (

Embark - Usage Example

- +