/**
 * Web3 Helper
 * Returns initialized web3 instance
 *
 * @author: U-Zyn Chua <chua@uzyn.com>
 */
var Web3 = require('web3');
var web3;
if (typeof window.web3 !== 'undefined') {
 web3 = new Web3(window.web3.currentProvider);
} else {
 web3 = new Web3(new Web3.providers.HttpProvider('__PROVIDER_URL__'));
}

/**
 * Web3 Helper
 * Returns initialized web3 instance
 *
 * @author: U-Zyn Chua <chua@uzyn.com>
 */
var Web3 = require('web3');
var web3;
if (typeof window !== 'undefined' && typeof window.web3 !== 'undefined') {
 web3 = new Web3(window.web3.currentProvider);
} else {
 web3 = new Web3(new Web3.providers.HttpProvider('__PROVIDER_URL__'));
}

Fix check for window, variable is not available in node context
Fix check for window, variable is not available in node context
