develop
// Set provider if (typeof web3 !== 'undefined') { web3 = new Web3(web3.currentProvider); } else { web3 = new Web3('ws://localhost:8546'); }