import Web3 from 'web3';

// set providor
if(typeof web3 !== 'undefined')
  web3 = new Web3(web3.currentProvider);
else
  web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));


// set providor
if(typeof web3 !== 'undefined') {
  web3 = new Web3(web3.currentProvider);
}
else {
  let Web3 = require('web3');
  web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
}
  

Fix import statement triggering in Mist
Fix import statement triggering in Mist
