mirror of https://github.com/BTCPrivate/copay.git
Request as a service instead of required()
This commit is contained in:
parent
c1336ea1cd
commit
da8aa18a1b
|
@ -1,8 +1,6 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var request = require('request');
|
var RateService = function(request) {
|
||||||
|
|
||||||
var RateService = function() {
|
|
||||||
this.isAvailable = false;
|
this.isAvailable = false;
|
||||||
this.SAT_TO_BTC = 1 / 1e8;
|
this.SAT_TO_BTC = 1 / 1e8;
|
||||||
this.queued = [];
|
this.queued = [];
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
angular.module('copayApp.services').factory('request', function() {
|
||||||
|
return require('request');
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue