Skip to content

Commit 99f6b07

Browse files
authored
Merge pull request #8 from xagfans/master
Add XAG Fork Network
2 parents db1f3b0 + 08e7f2d commit 99f6b07

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

img/coin/xag.png

4.32 KB
Loading

js/controller/send.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ myApp.controller("SendCtrl", ['$scope', '$rootScope', '$routeParams', 'XrpApi',
203203
domain: domain,
204204
destination: prestr,
205205
address: $rootScope.address,
206-
client : 'foxlet-' + appinfo.version
206+
client : 'foxlet-' + appinfo.version,
207+
network: $rootScope.currentNetwork.networkType == 'other' ? native.code : $rootScope.currentNetwork.networkType
207208
}
208209
});
209210
}).then(res => {
@@ -257,7 +258,8 @@ myApp.controller("SendCtrl", ['$scope', '$rootScope', '$routeParams', 'XrpApi',
257258
destination : $scope.quote_destination,
258259
domain : $scope.quote_domain,
259260
address : $rootScope.address,
260-
client : 'foxlet-' + appinfo.version
261+
client : 'foxlet-' + appinfo.version,
262+
network : $rootScope.currentNetwork.networkType == 'other' ? native.code : $rootScope.currentNetwork.networkType
261263
};
262264
$scope.extra_fields.forEach(function(field){
263265
if (field.name) {

js/service/Setting.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,24 @@ myApp.factory('SettingFactory', function($window) {
3838
},
3939
tabs: ["history", "trade", "balance", "send", "trust"]
4040
},
41+
xag: {
42+
name: "XAG Fork",
43+
translationKey: 'xag_url',
44+
networkType: 'xag',
45+
servers: [
46+
{server: 'g1.xrpgen.com', port: 443},
47+
{server: 'g2.xrpgen.com', port: 443},
48+
{server: 'g3.xrpgen.com', port: 443},
49+
{server: 'g4.xrpgen.com', port: 443}
50+
],
51+
coin: {
52+
name: "xrpgen",
53+
atom: "drop",
54+
code: "XAG",
55+
logo: "img/coin/xag.png"
56+
},
57+
tabs: ["history", "trade", "balance", "send", "trust"]
58+
},
4159
other: {
4260
name: "User defined",
4361
translationKey: 'other_url',

0 commit comments

Comments
 (0)