paypro: stop using global $http.

This commit is contained in:
Christopher Jeffrey 2014-08-06 09:58:16 -07:00 committed by Manuel Araoz
commit 052e2522be
3 changed files with 13 additions and 21 deletions

View file

@ -3,7 +3,8 @@
var chai = chai || require('chai');
var should = chai.should();
var sinon = require('sinon');
var is_browser = (typeof process == 'undefined' || typeof process.versions === 'undefined');
var is_browser = typeof process == 'undefined'
|| typeof process.versions === 'undefined';
if (is_browser) {
var copay = require('copay'); //browser
} else {