mirror of https://github.com/status-im/web3.js.git
fixed jshint warnings in httpprovider
This commit is contained in:
parent
cdb679b9a5
commit
1e74f9cda4
|
@ -24,8 +24,8 @@
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var npmRequire = (typeof Meteor !== 'undefined' && Meteor.isServer) ? Npm.require : require;
|
// workaround to use httpprovider in meteor on server side
|
||||||
|
var npmRequire = (typeof Meteor !== 'undefined' && Meteor.isServer) ? Npm.require : require; // jshint ignore:line
|
||||||
var XMLHttpRequest = (typeof window !== 'undefined' && window.XMLHttpRequest) ? window.XMLHttpRequest : npmRequire('xmlhttprequest').XMLHttpRequest; // jshint ignore:line
|
var XMLHttpRequest = (typeof window !== 'undefined' && window.XMLHttpRequest) ? window.XMLHttpRequest : npmRequire('xmlhttprequest').XMLHttpRequest; // jshint ignore:line
|
||||||
var errors = require('./errors');
|
var errors = require('./errors');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue