From a3a963eff3378199c2a385a86e12b8913e0be656 Mon Sep 17 00:00:00 2001 From: Denis Erfurt Date: Sat, 19 Mar 2016 20:35:56 +0100 Subject: [PATCH] Meteor 1.3+ can handle default CommonJs syntax --- lib/web3/httpprovider.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/web3/httpprovider.js b/lib/web3/httpprovider.js index aafa5b6..dd8b8b5 100644 --- a/lib/web3/httpprovider.js +++ b/lib/web3/httpprovider.js @@ -29,12 +29,8 @@ var errors = require('./errors'); // workaround to use httpprovider in different envs var XMLHttpRequest; // jshint ignore: line -// meteor server environment -if (typeof Meteor !== 'undefined' && Meteor.isServer) { // jshint ignore: line - XMLHttpRequest = Npm.require('xmlhttprequest').XMLHttpRequest; // jshint ignore: line - // browser -} else if (typeof window !== 'undefined' && window.XMLHttpRequest) { +if (typeof window !== 'undefined' && window.XMLHttpRequest) { XMLHttpRequest = window.XMLHttpRequest; // jshint ignore: line // node