Skip to content
This repository was archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanio committed Apr 8, 2018
1 parent 7d06825 commit fe80b52
Show file tree
Hide file tree
Showing 7 changed files with 4,071 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"presets": ["es2016-node5"]
"presets": ["react", "es2016-node5"]
}
10 changes: 4 additions & 6 deletions interface/components/NodeInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,16 @@ class NodeInfo extends Component {
componentDidMount() {
// NOTE: this goal of this component is to give status updates at
// least once per second. The `tick` function ensures that.
this.interval = setInterval(this.tick, 1000);
this.interval = setInterval(() => { this.tick() }, 1000);
}

componentWillUnmount() {
clearInterval(this.interval);
}

tick = () => {
web3.eth.net.getPeerCount((error, result) => {
if (!error) {
this.setState({ peerCount: result });
}
tick() {
web3.eth.net.getPeerCount().then(peerCount => {
this.setState({ peerCount });
});

this.setState({ timestamp: this.state.timestamp + 1 });
Expand Down
3 changes: 2 additions & 1 deletion modules/preloader/mistUI.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
require('babel-register');
/**
@module preloader MistUI
*/

require('babel-register');

// Initialise the Redux store
window.store = require('./rendererStore');

Expand Down
2 changes: 1 addition & 1 deletion modules/preloader/popupWindowsNoWeb3.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
require('babel-register');
/**
@module preloader PopupWindows
*/

require('babel-register');
require('./include/common')('popupWindow');
const { ipcRenderer, remote, webFrame } = require('electron');
const mist = require('./include/mistAPI.js');
Expand Down
Loading

0 comments on commit fe80b52

Please sign in to comment.